syslog-ng
I am running SuSE 10.0 and trying to configure syslog-ng.conf to log cron activities to a separate file. Here is what I did in the syslog-ng.conf:
#destination cron { file("/var/log/cron"); }; log { source(src); filter(f_cron); destination(cron); }; But syslog-ng cannot be restarted with the following information: unresolved reference: cron Error initializing configuration, exiting. Any idea how to correct this? Thanks. |
May help;
http://linux.cudeso.be/linuxdoc/syslog-ng.php Code:
destination cron { file("/var/log/cron.log"); }; |
Thanks. But still doesn't work. The problem I reported was not with the log file name, but rather the cron source. The syslog-ng doesn't know what cron is?
|
If you copied exactly what you have in syslog-ng.conf, then you commented out your own definiton of the destination cron. Remove that # sign.
|
How silly I was. Thanks.
|
All times are GMT -5. The time now is 11:26 AM. |