0

I am using syslog in my application, I have created a rule in syslog.conf file to log data from my application in to specific file. But it is also writing in to the standard syslog file, i dont want that. Can anybody please tell me to how to make it stop wrinting in the standard syslog file.

fkhan
  • 1
  • 1

1 Answers1

1

The rsyslog wiki has an example of redirecting data to a specific file, and avoiding to log it anywhere else.

First a rule to redirect:

if <your rule> then <your log file>

Then the same rule with ~ as action, causing the log line not to go into other filters

if <your rule> then ~
Nicolas Kaiser
  • 1,628
  • 2
  • 14
  • 26