Say I have the following nxlog.conf file:

<Input lc1>
Module im_file
File "/var/log/messages"

<Input lc2>
Module im_file
File "/var/log/mything.txt"

<Output fileout>
Module om_file
Exec if $Message =~ /error/ $SeverityValue = syslog_severity_value("error");
Exec to_syslog_bsd();
File "/var/log/logmsg2.txt"

<Route lcroute1>
Path lc1 => fileout

<Route lcroute2>
Path lc2 => fileout

Is there a way to just turn off the harvesting of Ic2 or the lcroute2 without having to modify or manually change the nxlog.conf file? Basically for this example nxlog.conf file have fine-grained adjustment/control of the logs if someone decides they want to turn off a log getting routed to the output file.

Thank you!

AskedAugust 10, 2021 - 8:51pm

Answers (0)