Server log file

The server log file tema.log is in the installation_directory/wlp/usr/servers/server1/logs/ directory. The log file saves all actions related to the server and is the primary source of information for troubleshooting purposes. Each action in the log file is reported according to the UTC time zone, but the file also shows information about the local time zone of your server.

Note: This directory also contains the production.log file. It is an additional log that contains messages related to the database server and can be used to investigate database-related problems. Most of the information that is written in this log is also available in the tema.log.

Settings that you can modify

Logging properties are set in the server.xml file that is in one of the following directories:
  • Linux installation_directory/wlp/usr/servers/server1
  • Windows icon installation_directory\wlp\usr\servers\server1
You can change the following settings:
messageFileName
The server log file name. The default name is tema.log.
logDirectory
The server log file location. The default location is:
  • Linux installation_directory/wlp/usr/servers/server1
  • Windows icon installation_directory\wlp\usr\servers\server1
maxFileSize
The maximum size (in MB) that a log file can reach before it is rolled over. To disable this attribute, set the value to 0. The default value is 10.
maxFiles
If an enforced maximum file size exists, this setting is used to determine the maximum number of iterations of the server log file. If the log file reaches the maximum size that is defined in the maxFileSize parameter, the remaining messages roll over to another iteration of the file.

Log level

The log level controls which events are recorded in the server log file. The log level is set in the log4j.properties file that is in one of the following directories:
  • Linux installation_directory/wlp/usr/servers/server1/config
  • Windows icon installation_directory\wlp\usr\servers\server1\config
You can use the log4j.rootCategory property to change the logging level. The default level is INFO. The following is a list of the possible log levels:
FATAL
Task cannot continue and component, application, and server cannot function.
ERROR
Error events that might still allow the application to continue running.
WARN
Potential error or impending error. This level can also indicate a progressive failure.
INFO
General information that outlines the overall task progress.
DEBUG
Fine-grained informational events that are most useful to debug an application.
You need to change the log level to debug the BigFix Inventory server. To change the log level, you must modify the log4j.properties file in one of the following directories:
  • Linux installation_directory/wlp/usr/servers/server1/config
  • Windows icon installation_directory\wlp\usr\servers\server1\config
and jvm.options in one of the following directories:
  • Linux installation_directory/wlp/usr/servers/server1
  • Windows icon installation_directory\wlp\usr\servers\server1
To modify the file, perform these steps:
  1. Change #-DTEMA_LOG_DEBUG=true to -DTEMA_LOG_DEBUG=true.
  2. Restart BigFix Inventory.

Time zone

The time of all actions saved in the log file is specified according to the UTC time zone. You can compare these actions to the local time zone of your server to learn when exactly a particular action occurred. Information about your server time zone is written in the beginning of the log file and is repeated every 1000 entries. The following examples are the excerpts from the log file:

Linux
[INFO]: Local Server Time Zone is +0200 Europe/Warsaw
Windows
[INFO]: Local Server Time Zone is CurrentTimeZone=-300 (UTC-06:00) DaylightBias=-60