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):FATALERRORWARNINFODEBUG
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:
ERRORwill print log lines for bothERRORandFATALmessagesFATALwill print log lines only forFATALmessages
To configure Smart Polling to only produce
ERROR and
FATAL messages, use this CLI
rule:conf.user configure sp log_level ERROR