Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable all logs? [closed]

Tags:

Is it possible to disable logging on Linux (Ubuntu)?

Need to turn off the svn, jabber, apache, proftpd, sendmail, ssh, vpn, mysql and all system logs.

like image 449
Andrei Avatar asked Jun 28 '13 06:06

Andrei


People also ask

How do I turn off syslog?

Syslog is enabled by default. To disable it, enter the logging on command from the global config mode. To re-enable logging, re-enter the logging on command.


2 Answers

Syslog has been replaced by rsyslog on numerous OS. So, on Debian > 5, Ubuntu > 11.2, Centos 6.x the following command line would stop it:

 service rsyslog stop

Then, you can disable it at boot:

 systemctl disable rsyslog

to enable it again at boot:

 systemctl enable rsyslog
like image 161
Nicolas Guérinet Avatar answered Sep 17 '22 06:09

Nicolas Guérinet


If you went disable syslog, please running this command:

sudo systemctl disable rsyslog
like image 41
Cloud Avatar answered Sep 21 '22 06:09

Cloud