Log level customization

Smart Polling logs self-diagnostic information about its operations and activities during execution.

When Smart Polling logs self-diagnostic information, the logs are collected in these files:
  • /data/log/n2os/n2ossp.log
  • /data/log/n2os/n2os_strategist.log
To change the level of detail in the logs, you can run this command in the command-line interface (CLI):
conf.user configure sp log_level <LEVEL>
The change applies immediately. You don't need to edit any files or restart any services.
where <LEVEL> is one of the following values (in increasing order of verbosity):
  • FATAL
  • ERROR
  • WARN
  • INFO
  • DEBUG
Note:
The default value is INFO.
Note:
The values are ordered from the most to the least important, and the configured level is the minimum to be printed. For example:
  • ERROR will print log lines for both ERROR and FATAL messages
  • FATAL will print log lines only for FATAL messages
To configure Smart Polling to only produce ERROR and FATAL messages, use this CLI rule:
conf.user configure sp log_level ERROR