Linux

How to solve You have old files in your logwatch tmpdir (/var/cache/logwatch)

Written by Ian Carnaghan · 13 sec read >
  • Knowledge Base
  • Linux
  • How to solve You have old files in your logwatch tmpdir (/var/cache/logwatch)
  • Edit /etc/logwatch/conf/logwatch.conf and override the TmpDir value by changing the default temp directory to /tmp from /var/cache/logwatch
  • /tmp automatically gets trimmed by most Linux distributions meaning that there won’t be a built up of old log files.
  • Now delete the old files in /var/cache/logwatch using the command below:
    rm -rf /var/cache/logwatch/*

Last Updated On April 07, 2018
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. Profile

Leave a Reply

avatar
  Subscribe  
Notify of