Page 1 of 1

/var/log packages

Posted: Sun Apr 19, 2015 1:09 pm
by expandables
Hi is it safe to delete .gz files in /var/log? :mrgreen:

Re: /var/log packages

Posted: Sun Apr 19, 2015 1:20 pm
by DougieLawson
They will get deleted automatically by logrotate.

Running find /var/log -name "*.gz" | xargs sudo rm isn't going to do any damage.

If you don't want logs, don't create them in the first place by updating your rsyslog config files or delete them sooner by updating your logrotate config files.

Re: /var/log packages

Posted: Sun Apr 19, 2015 1:26 pm
by expandables
Can you give detail instructions on how to not log files thanks appreciate it :mrgreen:

Re: /var/log packages

Posted: Sun Apr 19, 2015 1:29 pm
by DougieLawson
expandables wrote:Can you give detail instructions on how to not log files thanks appreciate it :mrgreen:
Google rsyslogd

Re: /var/log packages

Posted: Sun Apr 19, 2015 1:31 pm
by expandables
That's not a detail instructions :lol: :mrgreen:

Re: /var/log packages

Posted: Sun Apr 19, 2015 3:02 pm
by DougieLawson
expandables wrote:That's not a detail instructions :lol: :mrgreen:
Learn to do your own research. I'm not interested enough in disabling logging to do your research for you.

Re: /var/log packages

Posted: Sun Apr 19, 2015 4:12 pm
by expandables
OK thanks :mrgreen: