ejabberd - Comments for "mod_logxml - Log XMPP Packets to XML File" https://www.ejabberd.im/mod_logxml en Cluster https://www.ejabberd.im/mod_logxml#comment-59258 <p>Anyone have a problem getting this working for ejabberd setups that are clustered?</p> <p>It seems to work before I setup ejabberd in a cluster. There aren't any errors in the logs and the log file directory is completely empty. I am logging message stanzas (or trying to!)</p> Fri, 16 Nov 2012 16:12:46 +0000 AdamLC comment 59258 at https://www.ejabberd.im perl script to parse https://www.ejabberd.im/mod_logxml#comment-58962 <p>Here is simple perl script to parse logxml files. HTML based on xmpp.xsl posted below.</p> <pre> #!/usr/bin/perl use strict; use XML::Simple; use CGI qw(param); my $str; open(A,"&lt; ej.xml"); while(&lt;A&gt;) { $str .= $_; } close(A); $str .= "&lt;log&gt;"; my $xml = XMLin($str); print "Content-Type: text/html\r\n\r\n"; print qq| &lt;html&gt; &lt;head&gt; &lt;style&gt; body { margin: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; } td { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; } p { color: blue; } td.head_right { background-color: #f0f0f0; padding: 0px 3px 0px 3px; font-size: 8pt; } td.head_left { width: 50px; background-color: #e0e0e0; padding: 0px 3px 0px 3px; font-weight: bold; font-size: 8pt; } td.header { border: solid 1px silver; } td.message { padding: 3px; border: solid 1px silver; } &lt;style&gt; &lt;head&gt; &lt;body&gt; &lt;table align="center" width="100%" cellspacing="0" cellpadding="0" style="border: solid 1px silver; border-collapse: collapse"&gt; |; my $ex = param('exclude'); foreach my $packet (@{$xml-&gt;{packet}}) { if ($packet-&gt;{'or'} eq 'send' &amp;&amp; $packet-&gt;{'message'}-&gt;{'body'}) { if ($packet-&gt;{'ljid'} =~ /$ex/ || $packet-&gt;{'message'}-&gt;{'to'} =~ /$ex/) { next; } if (!param('otr') &amp;&amp; $packet-&gt;{'message'}-&gt;{'body'} =~ /\?OTR/g) { next; } print qq| &lt;tr&gt;&lt;td class="header"&gt; &lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt; &lt;tr&gt; &lt;td class="head_left"&gt;ts: &lt;td&gt; &lt;td class="head_right"&gt;$packet-&gt;{'ts'}&lt;td&gt; &lt;tr&gt; &lt;tr&gt; &lt;td class="head_left"&gt;from: &lt;td&gt; &lt;td class="head_right"&gt;$packet-&gt;{'ljid'}&lt;td&gt; &lt;tr&gt; &lt;tr&gt; &lt;td class="head_left"&gt;to: &lt;td&gt; &lt;td class="head_right"&gt;$packet-&gt;{'message'}-&gt;{'to'}&lt;td&gt; &lt;tr&gt; &lt;table&gt; &lt;td&gt;&lt;tr&gt; &lt;tr&gt; &lt;td class="message"&gt;$packet-&gt;{'message'}-&gt;{'body'}&lt;td&gt; &lt;tr&gt; |; } } print qq| &lt;table&gt; &lt;body&gt; &lt;html&gt; |; </pre> Tue, 07 Aug 2012 06:28:00 +0000 hellman comment 58962 at https://www.ejabberd.im Configure like this https://www.ejabberd.im/mod_logxml#comment-57831 <p>If you configure like this, the announces are logged:</p> <pre> {stanza, [message]}, {direction, [internal]}, {orientation, [send]}, </pre> Wed, 14 Sep 2011 14:15:25 +0000 mfoss comment 57831 at https://www.ejabberd.im Announce messages https://www.ejabberd.im/mod_logxml#comment-57828 <p>Good day for all!<br /> The announce messages has not stores in log, but i've many users with sending announce rights.<br /> Is there a way to get log for announce messages?<br /> Thanks.</p> Wed, 14 Sep 2011 08:03:04 +0000 badgateway comment 57828 at https://www.ejabberd.im Fixed on 0.2.3 https://www.ejabberd.im/mod_logxml#comment-3375 <p>Finally, fixed on version 0.2.3. Check SVN.</p> Tue, 20 Mar 2007 19:41:15 +0000 mfoss comment 3375 at https://www.ejabberd.im Bug report: time shift minus 1 hour in the log name https://www.ejabberd.im/mod_logxml#comment-3253 <p>Version: 0.2.2 - 2007-02-13<br /> Names of logs still don't respect the timezone setting. This can be confusing sometimes - for instance first packet in today's log has timestamp ts="20070305T00:00:06", but the log is named srvis03-2007-03-04-23-00-06.xml (so in this case it even has different date in its name due to the one hour difference!)<br /> If you corrected this, the module would be nearly perfect.</p> Mon, 05 Mar 2007 07:33:46 +0000 Pontiac comment 3253 at https://www.ejabberd.im closing tag added https://www.ejabberd.im/mod_logxml#comment-3237 <p>Hmm, Badlop. It's weird (but pleasant at the same time :-). The mod_logxml suddenly (from 20.2.2007) started to add the &lt;\log&gt; closing tag. I am going to observe it. Cannot remember of any change I did in ejabberd configuration. </p> <p>We'll see.</p> <p>Pontiac</p> <p>PS: But anyway - is it OK that the <noindex><a href="mailto:ejabberd@conference.jabberd.ru" rel="nofollow" >ejabberd@conference.jabberd.ru</a></noindex> is off-line in my PSI? Is it really off-line? Or am I supposed to set it up somehow?</p> Thu, 01 Mar 2007 19:31:09 +0000 Pontiac comment 3237 at https://www.ejabberd.im I have added it https://www.ejabberd.im/mod_logxml#comment-3228 <p>But PSI says it is offline.</p> Wed, 28 Feb 2007 18:46:40 +0000 Pontiac comment 3228 at https://www.ejabberd.im It exists, join it https://www.ejabberd.im/mod_logxml#comment-3221 <div class="quote-msg"> <div class="quote-author"><em>Pontiac</em> wrote:</div> <p>I have just been trying to find chatroom ejabberd at conference.jabber.ru.<br /> So are you sure "ejabberd@conference.jabber.ru" exists?</p></div> <p>It exists, but it isn't listed on the MUC service. Tell your Jabber client the details of the chatroom and join it, instead of searching.</p> Tue, 27 Feb 2007 21:35:15 +0000 mfoss comment 3221 at https://www.ejabberd.im No ejabberd chatroom https://www.ejabberd.im/mod_logxml#comment-3220 <p>Hello Badlop,<br /> I have just been trying to find chatroom ejabberd at conference.jabber.ru. All I have found so far is "ejabber" and this one is offline.<br /> So are you sure "ejabberd@conference.jabber.ru" exists?</p> Tue, 27 Feb 2007 20:57:32 +0000 Pontiac comment 3220 at https://www.ejabberd.im No errors https://www.ejabberd.im/mod_logxml#comment-3065 <p>Hello,<br /> I have found no error or crashes regarding mod_logxml in ejabberd.log.</p> <p>I'll try the chatroom ASAP.</p> Tue, 13 Feb 2007 15:58:39 +0000 Pontiac comment 3065 at https://www.ejabberd.im log filename still created using universal time https://www.ejabberd.im/mod_logxml#comment-3064 <p>But the log entries are now logged correctly (timezone local). Thanks badlop for quick response. </p> <p>Pontiac</p> Tue, 13 Feb 2007 15:44:06 +0000 Pontiac comment 3064 at https://www.ejabberd.im New timezone option on version 0.2.2 https://www.ejabberd.im/mod_logxml#comment-3061 <p>The timestamp was specified in universal time. I've added a new option to specify the timezone you want the timestamps to be: local (as you want) or universal (as it was previously).</p> Tue, 13 Feb 2007 10:48:41 +0000 mfoss comment 3061 at https://www.ejabberd.im Strange bug. It works for me. https://www.ejabberd.im/mod_logxml#comment-3060 <p>Strange bug. </p> <p>It works correctly for me, and nobody else complained before. The module should add the closing tag before closing the file.</p> <p>Check the ejabberd log files for any ERROR or CRASH REPORT.</p> <p>If you are really interested in fixing this bug, we will have to do some live debugging. If so, join ejabberd chatroom any day between 20.00 and 22.00 GMT+1.</p> Tue, 13 Feb 2007 10:46:54 +0000 mfoss comment 3060 at https://www.ejabberd.im Bug report: time shift minus 1 hour in the log https://www.ejabberd.im/mod_logxml#comment-3055 <p>Briefly: it's 10:25 on the server now and when I send a message, in the log I can read the timestamp: ts="20070212T09:25:19".<br /> I'm in the Czech Republic and it's correctly set on our Win 2003 Server - GMT+01:00 (Prague). The timestamps in "ejabberd.log" are correct. It must be something with mod_logxml.</p> <p>Have a nice day<br /> Pontiac</p> Mon, 12 Feb 2007 09:50:10 +0000 Pontiac comment 3055 at https://www.ejabberd.im