
The article has been updated successfully.To setup Kiwi Syslog Daemon to log in XML format:
There you have it! The 'Log to file' action will now create entries in the log file that appear in the following format:
eg.
Unfortunately, this type of log file - although XML-like in appearance, is not 100% XML compliant. The reason? Well, it has to do with two things:
For one thing, XML requires a root tag in order to be parsed correctly by most XML parsers. And, because of the way that the XML log is being created - that is, in real time - there isn't any trailing
The following method describes how to ensure that we end up with an XML-compliant log file. (Suitable for viewing in Internet Explorer or the like.)
Assume that we have a log file generated by Kiwi Syslog Daemon, by the method descibed above i.e. Formatted to an XML custom format, and that the file is named: "logfile.xml".
STEP 1:
Create a separate XML file that includes "logfile.xml" as an ENTITY. Name the file "XML_Logfile_Wrapper.xml", it's content as follows:
]>
Ensure that XML_logfile_wrapper.xml and logfile.xml are in the same directory, and you have yourself a 100% compliant XML document. Just open XML_logfile_wrapper.xml to see for yourself.
Add in a stylesheet reference, and you have something that looks a little nicer on screen.
]>
The wrapper file (XML_logfile_wrapper.xml), a simple stylesheet (syslogd.css) and a sample logfile (logfile.xml) have been included in the attached Zip-file.
Happy Syslogging!
Last Updated
27th of August, 2010
Thank you for rating this answer.
SolarWinds makes award-winning storage management, application management, server management, and network management software trusted by more than one million engineers to manage IT environments ranging from tens to thousands of devices.
Discover our network monitoring, configuration management, network mapping, and free network tools today!
Enterprise-Class Network Management
Enterprise-Class Application & Server Management
Enterprise-Class Virtualization Management
Enterprise-Class Storage Management
Tools for Engineers
Easily monitoring bandwidth usage on a troublesome interface!
Record and test web transactions with the touch of a button!
Quickly discovers all of your virtual machines, then estimates what it would cost to move them to the cloud.
Prices displayed do not reflect international pricing unless otherwise stated. Please see our international price list for current pricing specific to your location.
All prices are subject to change without notice.
© 2003-2012 SolarWinds. All Rights Reserved.

