LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-17-2006, 02:27 PM   #1
xlh3110
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Rep: Reputation: 0
Question 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.
 
Old 02-17-2006, 05:24 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
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); };

Last edited by comprookie2000; 02-17-2006 at 05:26 PM.
 
Old 02-18-2006, 09:34 AM   #3
xlh3110
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Original Poster
Rep: Reputation: 0
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?
 
Old 02-20-2006, 08:16 PM   #4
darbo
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
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.
 
Old 02-21-2006, 12:21 PM   #5
xlh3110
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Original Poster
Rep: Reputation: 0
How silly I was. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Syslog-ng XaViaR Suse/Novell 2 06-16-2005 03:45 PM
what does this mean in my syslog? rosscopeeko Mandriva 4 06-04-2004 02:50 PM
syslog -r dvong3 Linux - General 5 12-27-2003 07:22 AM
Syslog??? pk21 Programming 3 07-05-2002 07:25 AM
Syslog ltrain Linux - General 3 06-27-2001 03:43 PM


All times are GMT -5. The time now is 03:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration