Linux: fine-grained disable-enable control of logs
Say I have the following nxlog.conf file:
<Input lc1> Module im_file File "/var/log/messages" </Input>
<Input lc2> Module im_file File "/var/log/mything.txt" </Input>
<Output fileout> Module om_file Exec if $Message =~ /error/ $SeverityValue = syslog_severity_value("error"); Exec to_syslog_bsd(); File "/var/log/logmsg2.txt" </Output>
<Route lcroute1> Path lc1 => fileout </Route>
<Route lcroute2> Path lc2 => fileout </Route>
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!