1

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?

Alireza
  • 583
  • 4
  • 9
  • 27
  • 1
    You probably shouldn't disable syslog (completely) but instead you need to *tune the services* that use the syslog facility for logging to be less verbose if you don't want/need to log the events they are generating. How to do so depends on the actual services. – HBruijn May 23 '17 at 06:35
  • Most of it is about influxD database – Alireza May 23 '17 at 06:39
  • 4
    Then I would suggest to read the logging section in the documentation on how to either reduce verbosity, or if for instance the product supports use of a **log file** instead of syslog. – HBruijn May 23 '17 at 06:43

0 Answers0