lfd:logscanner

Configure an email summary of the log lines of logs.

juggernaut --task=lfd:logscanner
Option
Value Default Description
--LOGSCANNER <1|0> 0 Send out an email summary of the log lines of each log listed in /etc/csf/csf.logfiles. All lines will be reported unless they match a regular expression in /etc/csf/csf.logignore.
--LOGSCANNER_INTERVAL <hourly|daily|manual> hourly The interval each report will be sent.
--LOGSCANNER_STYLE <1-2> 1 The logscanner report style.
--LOGSCANNER_EMPTY <1|0> 1 Send the report email even if no log lines reported.
--LOGSCANNER_LINES <1000-100000> 5000 The maximum number of lines in the report before it is truncated.
--default <yes> Reset all settings to their default values.
--default_option <option> Reset a specific setting to its default value.
--restart <yes> Restart the service after saving settings.

Examples

// enable the LOGSCANNER
juggernaut --task=lfd:logscanner --LOGSCANNER=1 --restart=yes

// reset LOGSCANNER back to default
juggernaut --task=lfd:logscanner --default_option=LOGSCANNER --restart=yes

// reset all settings back to default
juggernaut --task=lfd:logscanner --default=yes --restart=yes