My boss recently wanted me to start monitoring the jabber logs for inappropriate use. The log is formatted like an html document and has no easy way of reading it. Is there a simple script I can make to display the log into a easier way of reading? Like...
Time SenderUsername to ReceiverUsername: The message goes here.....
Below is how the log formats everything, it's all one line btw:
Code:
<log time='20050208T17:51:09;><message id='jim_id_1382' to='SenderUsername@domain.com' type='chat' from='ReceiverUsername@domain.com/Jabber Instant Messenger'><x xmlns='jabber:x:event'><composing/></x><html xmlns='http://www.w3.org/1999/xhtml'><body><span style='font-family: Arial; margin:0; padding:0; font-size: 10pt'>Message goes here blah blah</span><br/></body></html><thread>3CFE0E4822DA63FA4AD2C5CD3AB3FEBC</thread><body>Message goes here blah blah</body></message></log>