Logs
WombatOAM shows logs that occur on managed nodes on the Logs page. A message appears for each log, and all messages increment the counter badge on the Logs page.
In addition to the built-in logs (listed below), WombatOAM also collects
log entries from the error_logger
module and the lager
application if they are
present on the managed node.
Tags are assigned to logs enabling role based information retrieval.
All logs are tagged with the dev
and op
tags by default, which can
be overridden by adding the following line to wombat.config
.
1 |
|
Viewing logs
By default, only logs at warning level and above are collected. You can change this on the web dashboard on a per-node basis. On the "Logs" page, select the node, click the cogwheel icon on the filter summary above the log list and change the minimal log level for a given source.
You can click on an entry to view its details. To find specific log entries, you can use the "Application filter" box and "Search in logs" box above the list of notifications.
If new logs arrive after you have opened the page, WombatOAM will show a message above the list of notifications, with a link to show the new entries. To view entries older than the those that are visible, use the buttons below the list.
Mailing notifications
WombatOAM can be configured to email some or all collected notifications to any number of recipients. At the moment it is only possible to filter notifications by specifying the minimum severity they should have to be emailed.
There are plans to also include other filters such as the actual list of
severities, a regular expression the notification message must contain and
the possibility to send abridged emails that contain the last n
notifications.
The details on how to configure this mailer feature can be found in the "Configuration" section.
Built-in notifications
Busy port
Triggered by a system monitor on busy ports. A process in the system was
suspended because it was sending to a busy port. This notification is disabled
by default, see the documentation of the code_tracer
plugin on
how to enable it.
Busy dist port
Triggered by a system monitor on busy dist ports. A process in the system was
suspended because it was sending to a process on a remote node whose inter-node
communication was handled by a busy port. This notification is disabled by
default, see the documentation of the code_tracer
plugin on how
to enable it.
Long GC
Triggered by a system monitor by an unusually long garbage collection. A garbage
collection in the system took longer than expected. This notification is
disabled by default, see the documentation of the code_tracer
plugin on how to enable it.
Long schedule
Triggered by a system monitor as a result of a process hogging the scheduler. A
process or port in the system has been running uninterrupted for a longer time
than expected. This notification is disabled by default, see the documentation
of the code_tracer
plugin on how to enable it.
Large heap
Triggered by a system monitor due to an unusually large heap. A garbage
collection in the system resulted in the size of a heap being unusually large.
This notification is disabled by default, see the documentation of the
code_tracer
plugin on how to enable it.
Crash dump saved
A crash dump was saved for inspection. Erlang produces a crash dump file if the runtime terminates abnormally. This can occur because of depletion of memory, or if a supervisor cannot recover a given supervision tree.
Code loaded
A module was loaded in the system.
Code purged
Modules were purged from the system.
Shell command
A shell is evaluating an expression.
SASL error report
An error report was logged.
SASL warning
A warning was logged.
SASL crash report
A crash report was logged.
SASL info report
An info report was logged.
Scheduler sleeps
Indicates a change in the number of online schedulers.
Scheduler wakes up
Indicates a change in the number of online schedulers.
Configuring logging
In the configuration files WombatOAM users can set the behaviour of the following two types of log files where collected logs from the managed nodes will be stored.
- wombat log files: With default options all logs excluding the evaluated shell commands will be stored in these files. In the config the size of one file, and the size of all log files can be set with the options shown below. (In the example, we set the size of one log file to 500 Kilobytes, and the size of all log files to 10 Gigabytes.)
1 2 3 4 5 |
|
- backup log files: Using filters we can define what type of log items will be
written to the backup log files. These files will have the same size as the
log files (
log_file_size
option will be used), but the size of all backup logs is not limited by thelog_max_size
config option. However, with the current implementation the number of all backup logs are limited to 50,000.
By default all log entries about the evaluated shell commands will be stored in the backup logs, and everything else in the logs.
The log file size and the size of all log files are defined in the config files. The default options are:
- Log file size: 20 MB
- Size of all logs: 2 GB
Example configuration:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|