Page 1 of 1
Can I delete syslog or any other log, and let it re-create
Posted: Fri Nov 07, 2014 1:07 am
by jojo_angelov
So I am thinking of ways to be able to delete logs after a long time of use of the Rpi. I might have one running for over a year and I want to make sure there is enough space. What would be the best way to clear logs?
Re: Can I delete syslog or any other log, and let it re-crea
Posted: Fri Nov 07, 2014 6:47 am
by DougieLawson
There's already a package called logrotate to do that. It's driven from /etc/logrotate.conf and the files in /etc/logrotate.d
Re: Can I delete syslog or any other log, and let it re-crea
Posted: Fri Nov 07, 2014 8:07 am
by trevatxtal
All plain text logs can be loaded into an editor.
Then delete all and save empty file or if you prefer part of the file.
I like to keep today's entry's but discard all others.
Trev