Logging with Load Balancer
Load Balancer posts entries to a server log, a manager log, a metric monitor log (logging communications with Metric Server agents), and a log for each advisor you use.
About this task
You might want to configure logging for a variety of reasons, like troubleshooting or keeping
records. Load Balancer can log activities to varying degrees of detail and keep the log files on
your system. You can customize the following logging features:
- Setting the logging level to define the expansiveness of the messages written to the log. At level 0, errors are logged and Load Balancer also logs headers and records of events that happen only once (for example, a message about an advisor starting to be written to the manager log). Level 1 includes ongoing information, and so on, with level 5 including every message produced to aid in debugging a problem if necessary. The default for the manager, advisor, server, or subagent logs is 1.
- Setting the maximum size of a log. When the log file reaches the specified size, it is saved as
<component>.log.full
, and subsequent logs are written in the currently running file. In next cycle, the existing<component>.log.full
is deleted Load Balancer will create a new one.Important: You cannot set the log size to a value that is smaller than the current one. The higher you set the log level, the more carefully you should choose the log size. At level 0, it is probably safe to leave the log size to the default of 1MB; however, when logging at level 3 or higher, you should limit the size without making it too small to be useful.
Log entries are time stamped so you can tell the order in which they were written.
Tip: You can use similar steps for logging for the other components of Load
Balancer.