Cool Solutions

ZENworks Configuration Management – Server Log Parser



By:

November 15, 2011 4:08 pm

Reads:5,909

Comments:0

Score:Unrated

License:
N/A

Download zenworkslogparser_0.zip

Prerequisites:

IMPORTANT: Although the ZCM Server Log Parser is at version 11, you may still use it to parse logs from 10.3.x

You must have the Java JRE or JDK installed on the machine you are running the tool from. Either the JAVA_HOME or the ZENWORKS_HOME environment variables must be set.

On Windows, if JAVA was installed at C:\Program Files\Java\jdk1.6.0, to set the JAVA_HOME directory run:

set JAVA_HOME=C:\Program Files\Java\jdk1.6.0

On Linux, if JAVA was installed to /opt/java/jdk1.6.0, I would run:

export JAVA_HOME=/opt/java/jdk1.6.0

Features:

  1. Can parse the services-messages.log and loader-messages.log
  2. Counts the number of instances of a particular web service based up on the name in brackets. For example any message prefixed with [Assignment Web Service] will be tracked as an “Assignment Web Service” call.
  3. Any web service that logs in the following format will be tracked based upon average duration for a specified time interval:
    [DEBUG] [4/1/11 9:12:11 AM] [] [<web service name>] [] [<web service call> complete, time: <duration>ms...] [] []
  4. Can track cache evictions, maximum cache size and average cache sizes if cache logging is enabled.
  5. Tracks the number of exceptions found in the logs by the specified time intervals.
  6. Tracks the number of restarts of either the ZENLoader or ZENServer service.
  7. Can produce both a bar and a line graph for the number of web services found as well as the web service durations.
  8. Parses multiple log files at the same time.
  9. Parses the backup .zip files generated when a log reaches the size limit specified in ZCC
  10. Can union the results of multiple log files (.zip and .log) from both ZENworks Loader and ZENworks Server services.
  11. Can increase the precition of the data generated from days (default) to hours or minutes
  12. Can focus on a specific time interval in the logs and only report on that interval.
  13. Can focus in on a user specified number of more prevalent web services for both counts and web service durations.

Generated Results:

Currently, the log parser generates results files for several different stats:

  • Web Service Counts – the number of times a web service log entry is encountered. This is not necessarily the number of times a device requests information from a web service, but this count is directly proportionate to the number of request being made.
  • Web Service Times – this is the duration that any given web service method call may last prior to returning the requested content back to the client.
  • Exceptions – how many times each type of exception occurs
  • Restarts – how often a service restarts,
  • Cache Usage – how many items are in the each server-side cache and the evictions. IMPORTANT: This will only show up if cache logging has been enabled. This will happen by default if the log level is set to DEBUG.

The results files that are generated from the ZENworks Log Parser will use the log filename as the prefix for the results file names, so if the log filename is “services-messages.log” the results files will be:

services-messages.log-exceptions.csv
services-messages.log-wscount.csv
services-messages.log-wscount_bar.jpg
services-messages.log-wscount_line.jpg
services-messages.log-wstimes.csv
services-messages.log-wstimes_bar.jpg
services-messages.log-wstimes_line.jpg
services-messages.log-cacheinfo.csv

The .csv files are files with comma separated values. These are easily imported into spreadsheets or even databases. The .jpg files are the graphs of data. This makes it particularly easy to quickly spot trends or problems.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading ... Loading ...

Tags:
Categories: Cool Tools, Technical, ZENworks, ZENworks Configuration Management

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS