[SOLVED] Rsyslog and CRON disable

lixaotec

Member
Jul 26, 2020
73
2
13
45
Dear folks,

I´ve been trying to stop CRON tasks from being log at syslog in my pve 6.2 host, however nothing seems to works.

i´ve changed /etc/rsyslog.conf to:

#
# First some standard log files. Log by facility.
#
auth,authpriv.* /var/log/auth.log
*.*;auth,authpriv.none,cron.none -/var/log/syslog
cron.* /var/log/cron.log
daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
lpr.* -/var/log/lpr.log
mail.* -/var/log/mail.log
user.* -/var/log/user.log

After then I restarted rsyslog service
service rsyslog restart

And nothing seem to happen, I see log of rsyslog restart, but the CRON (that runs every minute) keep login its pam_unix lines

What is missing?

Thanks
 
hi,

change
Code:
*.*;auth,authpriv.none,cron.none -/var/log/syslog
to
Code:
*.*;cron,auth,authpriv.none     -/var/log/syslog

and restart the rsyslog service again
 
  • Like
Reactions: lixaotec and Arvyr
Dear @oguz ,

Thanks for replying.

I did it, but it is still loggin Cron pam_unix messages at syslog,

Ive tried a bunch of combination. I have a job running every minute, and it is very annoying to have 3 new messages at syslog everytime.

if there is another trick please, let me know.
 
I figured out something, perhaps its the issue' .

In fact it seems that /var/log/syslog didnt show cron logs, however proxmox gui Syslog menu it seems to show them,

Is it something that shows all logs merged?

thanks
 
If syslog menu shows all /var/log/ files merged, is it possoble to supress some of them like cron.log?
 
In a brief proxmox research Ive verified that Syslog feature reads from 'journal' that goes up to the tool proxmox-mini-journalreader

It seems that it does not read from the filtered written logs, maybe @Dominic may provide some information to clarify this behaviour?

Thank you so much