Linux
--
Questions
--
Followers
Top Experts
Can I remove /var/cache/logwatch, because it's too big ?
My server is RHEL 5
Data in /var/cache/logwatch is seem too BIG (8GBs) in 6 month running
With 3 directory:
Mar 18 04:09 logwatch.97zqIUsQ
Mar 5 08:11 logwatch.lUueW3Rv
Sep 13 2008 logwatch.qiFfMw78
Logwatch is important? Can I remove it?
Data in /var/cache/logwatch is seem too BIG (8GBs) in 6 month running
With 3 directory:
Mar 18 04:09 logwatch.97zqIUsQ
Mar 5 08:11 logwatch.lUueW3Rv
Sep 13 2008 logwatch.qiFfMw78
Logwatch is important? Can I remove it?
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
ASKER CERTIFIED SOLUTION
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
This might be a symptom of something else going wrong. The directory contains temporary files that should be deleted after logwatch completes, indicating that it failed on Mar 18, Mar 8, and Sep 13. It's normally run at 4:00 AM, so the one that was still running at 8:11 looks suspicious.
Logwatch provides a very useful summary of important events in the log files. You might want to keep an eye on the directory and try to correlate any failed runs to other activity on your system.
Logwatch provides a very useful summary of important events in the log files. You might want to keep an eye on the directory and try to correlate any failed runs to other activity on your system.
yes its ok.
do this:
cat >/var/cache/logwatch [enter]
[press control z] directly.
done! your logwatch was renew and refresh.
do this:
cat >/var/cache/logwatch [enter]
[press control z] directly.
done! your logwatch was renew and refresh.
I would do:
echo /dev/null>/var/cache/logwa tch
This will result in a zero-length file.
You might like to add logwatch to /etc/logrotate.conf, so you don't have to do that again. You can specify to rotate it every interval, or when it gets to some size.
Control-z is not end of file: end of file is Control-d. That will cause cat in the previous post to exit. The resultant file will be a byte or 2 in length
Control-z will stop a program the shell is running if there is one, else does nothing. If a program was running, you can re-start it with either "bg" (resume execution as a background process) or "fg" (resume as the program bash is running (foreground process)).
echo /dev/null>/var/cache/logwa
This will result in a zero-length file.
You might like to add logwatch to /etc/logrotate.conf, so you don't have to do that again. You can specify to rotate it every interval, or when it gets to some size.
Control-z is not end of file: end of file is Control-d. That will cause cat in the previous post to exit. The resultant file will be a byte or 2 in length
Control-z will stop a program the shell is running if there is one, else does nothing. If a program was running, you can re-start it with either "bg" (resume execution as a background process) or "fg" (resume as the program bash is running (foreground process)).






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Linux
--
Questions
--
Followers
Top Experts
Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.