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.
{set, wo_logs, default_tags, [<<"Tag1">>, <<"Tag2">>]}.Viewing logs
Section titled “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
Section titled “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
Section titled “Built-in notifications”Busy port
Section titled “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
Section titled “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
Section titled “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
Section titled “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
Section titled “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
Section titled “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
Section titled “Code loaded”A module was loaded in the system.
Code purged
Section titled “Code purged”Modules were purged from the system.
Shell command
Section titled “Shell command”A shell is evaluating an expression.
SASL error report
Section titled “SASL error report”An error report was logged.
SASL warning
Section titled “SASL warning”A warning was logged.
SASL crash report
Section titled “SASL crash report”A crash report was logged.
SASL info report
Section titled “SASL info report”An info report was logged.
Scheduler sleeps
Section titled “Scheduler sleeps”Indicates a change in the number of online schedulers.
Scheduler wakes up
Section titled “Scheduler wakes up”Indicates a change in the number of online schedulers.
Configuring logging
Section titled “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.)
% size of one log file in bytes{set, wo_logs, wo_logs_disklog, log_file_size, 512000}.
% size of all logs in bytes{set, wo_logs, wo_logs_disklog, log_max_size, 10737418240}.- 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_sizeoption will be used), but the size of all backup logs is not limited by thelog_max_sizeconfig 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:
% size of one log file in bytes{set, wo_logs, wo_logs_disklog, log_file_size, 500000}.
% size of all logs in bytes{set, wo_logs, wo_logs_disklog, log_max_size, 10000000000}.%% A list of filter expressions used to configure log entries% which will never be deleted%% Use one of the following expressions for filtering:% {originator, Originator :: binary()}% {node_id, NodeId :: binary()}% {node_family_id, NodeFamilyId :: binary()}% {message, Message :: binary()}%{set, wo_logs, wo_logs_disklog, backup_filters, []}.