Re: Question on /var/log/message
Posted: 2018/02/08 17:40:08
1. This is file, which I created for disable some messages:
/etc/rsyslog.d/message-disable.conf
Don't forget to restart rsyslogd.
2. You can try change the Log Level in Systemd:
Temporaly:
systemctl -pLogLevel show
systemd-analyze set-log-level notice
Permanently in files:
/etc/systemd/system.conf
/etc/systemd/user.conf
/etc/rsyslog.d/message-disable.conf
Code: Select all
:msg, regex, "^.*Starting Session [0-9]* of user" stop
:msg, regex, "^.*Started Session [0-9]* of user" stop
:msg, regex, "^.*New session [0-9]* of user" stop
:msg, regex, "^.*Removed session [0-9]*." stop
:msg, regex, "^.*starting 0anacron*" stop
:msg, regex, "^.*finished 0anacron*" stop
:msg, regex, "^.*starting 0yum-hourly.cron*" stop
:msg, regex, "^.*finished 0yum-hourly.cron*" stop
:msg, regex, "^.*run-parts /etc/cron.hourly*" stop
if $programname == "systemd" and \
($msg contains "Starting Session" or \
$msg contains "Started Session" or \
$msg contains "Created slice" or \
$msg contains "Starting user-" or \
$msg contains "Removed slice user-" or \
$msg contains "Stopping user-") then stop
2. You can try change the Log Level in Systemd:
Temporaly:
systemctl -pLogLevel show
systemd-analyze set-log-level notice
Permanently in files:
/etc/systemd/system.conf
/etc/systemd/user.conf
Code: Select all
#LogLevel=info
LogLevel=notice