I have many services that floods syslog file in /var/log
with tons of messages. Sometime server restart all of a sudden and when I created a ticket about the issue, they said that the problem is related to the heavy use of the emulated serial port. By default, the emulated serial port receives the kernel log messages.
On my server dmseg
is empty, but syslog
has many logs written into. I think I have to disable this feature. Now I tried the below command to disable it:
dmesg -D
or this command:
sudo dmesg -n 1
But logs are written into syslog. How should I disable syslog logging, or to disable some services from writing into syslog?