[ejabberd] Message Archiving Module

Gregg Berkholtz ejabberd at gbcomputers.com
Fri Mar 18 19:53:21 MSK 2005


On Fri, Mar 18, 2005 at 09:23:58AM -0000, James Tait wrote:
> Ah yes, documentation would have been a good idea. :)  The relevant portion
> of my ejabberd.cfg is:
> 
> % Used modules:
> {modules,
>  [
>   ...
>   {mod_service_log, [{loggers, ["logger.node.name"]}]},
>   {mod_log_forensic, [{host, "logger.node.name"},
>                       {forensic_log, "mod_log_forensic.xml"}]},
>   ...
>  ]}.
>
Ahh, that helps - thanks.

I added your entry with the forensic_log part, and after restarting, a
log was never created. So here's my current (somewhat working - see
below) entry:
 {mod_service_log, [{loggers, ["logger.jabber.node.name"]}]},
 {mod_log_forensic, [{host, ["logger.jabber.node.name"]}]},

The above creates the default logfile defined within the script itself.

Though after adding the config entry and then restarting ejabberd, the
following is reported in ejabber.log, and then the forensic logger
stops:
 Error in process <0.315.0> on node 'ejabberd at linux2' with exit value:
 {{badmatch,{xmlelement,"iq",[{"type","get"},{"id","sd22"},{"to","logger.jabber.x.com"}],[{xmlelement,"query",[{"xmlns","http://jabber.org/protocol/disco#info"}],[]}]}},[{mod_log_forensic,loop,2}]}

I'm usiung the ejabberd 0.7.5 binaries/source from
http://sgolovan.nes.ru/debian/woody

Here's was made it into forensic_log.xml before the logger stopped.
&lt;?xml version="1.0"?>
&lt;?xml-stylesheet href="xmpp.xsl" type="text/xsl"?>
&lt;log>
<iq from='username at jabber.x.com/Pandion' to='jabber.x.com' type='get' id='sd67'><query xmlns='http://jabber.org/protocol/disco#items'/></iq>
<iq from='jabber.x.com' to='username at jabber.x.com/Pandion' id='sd67' type='result'><query xmlns='http://jabber.org/protocol/disco#items'><item jid='aim.jabber.x.com'/><item jid='conference.jabber.x.com'/><item jid='echo.jabber.x.com'/><item jid='irc.jabber.x.com'/><item jid='logger.jabber.x.com'/><item jid='msn.jabber.x.com'/><item jid='pubsub.jabber.x.com'/><item jid='vjud.jabber.x.com'/><item jid='users.jabber.org'/></query></iq>
<iq from='username at jabber.x.com/Pandion' to='username at jabber.x.com' type='get' id='sd68'><query xmlns='jabber:iq:roster'/></iq>
<iq from='username at jabber.x.com/Pandion' to='username at jabber.x.com/Pandion' id='sd68' type='result'><query xmlns='jabber:iq:roster'><item subscription='both' name='user1' jid='user1 at jabber.x.com'><group>Contacts</group></item><item subscription='both' name='user2' jid='user2 at jabber.x.com'><group>Contacts</group></item><item subscription='both' name='user3' jid='user3 at jabber.x.com'><group>Contacts</group></item></query></iq>
<iq from='username at jabber.x.com/Pandion' to='aim.jabber.x.com' type='get' id='sd69'><query xmlns='http://jabber.org/protocol/disco#info'/></iq>
<iq from='username at jabber.x.com/Pandion' to='conference.jabber.x.com' type='get' id='sd70'><query xmlns='http://jabber.org/protocol/disco#info'/></iq>
<iq from='username at jabber.x.com/Pandion' to='echo.jabber.x.com' type='get' id='sd71'><query xmlns='http://jabber.org/protocol/disco#info'/></iq>
<iq from='username at jabber.x.com/Pandion' to='irc.jabber.x.com' type='get' id='sd72'><query xmlns='http://jabber.org/protocol/disco#info'/></iq>
<iq from='username at jabber.x.com/Pandion' to='logger.jabber.x.com' type='get' id='sd73'><query xmlns='http://jabber.org/protocol/disco#info'/></iq>

Thanks,
Gregg Berkholtz



More information about the ejabberd mailing list