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

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

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…

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 :confused:

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