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.
Asked
Active
Viewed 958 times
1 Answers
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
-
I was able to get the required output by tweaking the conf file. Thanks for the reply. – fkhan Apr 29 '13 at 20:44
-
1user, Could you either edit your question or answer to help other people? – Thomas BDX Aug 02 '13 at 11:31