Results 1 to 5 of 5

Thread: syslog-ng change logfile for cron

  1. #1

    Default syslog-ng change logfile for cron

    Hi,

    I want the messages for cron in a different logfile /var/log/cron.log, so I changed /etc/syslog/syslog-ng.conf

    there were already two commented out lines for cron, so I commented them in, and did a rcsyslog restart.

    but the messages still are written into /var/log/messages...

    How can I change that?
    Thx

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: syslog-ng change logfile for cron

    What version openSUSE? rsyslogd is used by default from 11.3 onwards I think, not syslog-ng.

  3. #3

    Default Re: syslog-ng change logfile for cron

    It's 11.4 so this could be why, I also have an /etc/rsyslog folder, but there's only an remote.conf in it...

  4. #4

    Default Re: syslog-ng change logfile for cron

    So I searched for rsyslog and changed /etc/rsyslog.conf and added one line:

    cron.* /var/log/cron.log


    and of course a rcsyslog restart again

    but still no difference :/

  5. #5

    Default Re: syslog-ng change logfile for cron

    Ok I got it, u need add cron.none to the line where it configs what is logged to messages and what not...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •