Disable systemd logging for “Starting Session – Started Session” messages on Centos 7

Disable systemd logging for "Starting Session - Started Session" messages on Centos 7

Disable systemd logging

 

“Starting Session”, “Started Session” are low priority info messages related to session. If you want to change the log level, use one of the following methods.

 

Method 1
Run as root:

systemd-analyze set-log-level notice

Add the previous line to /etc/rc.local file, to takes effect at each boot. And make sure that the file is executable:

chmod +x /etc/rc.d/rc.local

For more information go to https://www.freedesktop.org/software/systemd/man/systemd-analyze.html

 

Method 2
Edit /etc/systemd/system.conf file, uncomment and change the line #LogLevel=info to LogLevel=notice. To apply changes, without reboot, run as root:

systemctl daemon-reexec
Disable systemd logging for “Starting Session – Started Session” messages on Centos 7




Disable systemd logging for “Starting Session – Started Session” messages on Centos 7
Tagged on:     

Leave a Reply

Your email address will not be published. Required fields are marked *

Skip to toolbar