78.8 Viewing the Status Log in XML Format

All inventory components log the status messages in a log file maintained in XML (Extensible Markup Language) format. Unlike the status logs that contain a history of the ten latest status messages, the status XML log stores all status messages.

The log file contains the following information:

The format of the log file is as follows:

?xml version="1.0" encoding="UTF-8"?>
?xml stylesheet type="text/xsl" href="inventorylog.xsl"?
<message_log>
 <message_entry>
   <module_name>Scanner</module_name>
   <severity>Critical</severity>
   <date_time>8/3/00 12:49 PM</date_time>
    <message_tag>unable to create scan data files</  message_tag>
    <dn_name>Inv_server</dn_name>
  </message_entry>
  </module_name>Storer</module_name>
    <severity>Critical</severity>
    <date_time>8/3/00 12:49 PM</date_time>
    <message_tag>unable to update the database</message_tag>
    <dn_name>Inv_server</dn_name>
</message_entry>
..
</message_log>

A sample style sheet and Document Type Declaration (DTD) file are located in inventory_installation_directory\inv\server\xmlog on the server.

The inventorylog.xml log file is located in the inventory_installation_directory\inv\server\xmlog directory on NetWare® and Windows* servers.

By default, the maximum size of the log file is 120 KB. To modify the maximum size of the log file, edit the inventorylog.ini file. On NetWare and Windows servers, this file is in the inventory_installation_directory\inv\server\xmlog directory.

The contents of inventorylog.ini are as follows:

max_file_size=100 KB

Modify the MAX_FILE_SIZE parameter, if required.

If the file size exceeds the value specified in the MAX_FILE_SIZE parameter, the file is archived as filename_old.xml. The latest messages are in the current log file.

To view the log data file, use a third-party XML browser.