Welcome! Use the login menu to access:
Customer Portal
SolarWinds customers can download purchased software, renew maintenance, & more in our updated Customer Portal!
Community
After logging in, community members can rate & review SolarWinds software & participate in forums on thwack.com.
Partner Portal
SolarWinds channel partners will find all the resources they need in the Partner Portal, including exclusive partner tools.
| More

SolarWinds Knowledge Base

Setup XML Compliant Logging in Kiwi Syslog Daemon

Kiwi Syslog Daemon provides the ability to format log files using custom file formats, one of which is XML.

To setup Kiwi Syslog Daemon to log in XML format:

  • Open the Kiwi Syslog Daemon Setup window.
  • Select a new or existing "Log to file" Action.
  • Change the "Log file format" to "XML tagged format".
  • Apply the new settings.

There you have it! The 'Log to file' action will now create entries in the log file that appear in the following format:

eg. 10%2F05%2F200610:22:01

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 termination tag.

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:



]>
&logfile;

 

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.




]>
&logfile;

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!



Related Articles

No related articles were found.

Attachments

Visitor Comments

No visitor comments posted. Post a comment

Post Comment for "Setup XML Compliant Logging in Kiwi Syslog Daemon"

If this article does not provide the solution you need, please consider visiting our community forums on thwack or contacting SolarWinds Support. Please use the following form to provide comments that help us improve this KB article. Fields marked with an asterisk are required.

   Name:
* Email:
* Comment:
* Enter the code below:

 

Article Details

Last Updated
27th of August, 2010

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions

No users have voted.

How would you rate this answer?




Thank you for rating this answer.

Continue