LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   syslog-ng (https://www.linuxquestions.org/questions/linux-software-2/syslog-ng-416604/)

xlh3110 02-17-2006 02:27 PM

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.

comprookie2000 02-17-2006 05:24 PM

May help;
http://linux.cudeso.be/linuxdoc/syslog-ng.php
Code:

destination cron { file("/var/log/cron.log"); };
log { source(src); filter(f_cron); destination(cron); };


xlh3110 02-18-2006 09:34 AM

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?

darbo 02-20-2006 08:16 PM

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.

xlh3110 02-21-2006 12:21 PM

How silly I was. Thanks.


All times are GMT -5. The time now is 11:26 AM.