How to clean up old logwatch archive?

Solution Verified - Updated -

Issue

  • Noticed that /var was reaching a limited amount of free space and executed the following;

dh@~ /]$ sudo find /var -size +200000 -exec ls -lah {} \;                                                                  
-rw------- 1 root root 127M Nov 20 04:02 /var/cache/logwatch/logwatch.JKtged8u/http-archive
-rw------- 1 root root 101M Dec 15 04:02 /var/cache/logwatch/logwatch.bzCNYOAS/http-archive
-rw------- 1 root root 128M Dec  3 04:02 /var/cache/logwatch/logwatch.GCxLpBAJ/http-archive
-rw------- 1 root root 126M Nov 25 04:02 /var/cache/logwatch/logwatch.duJB4zWT/http-archive
-rw------- 1 root root 121M Nov 18 04:02 /var/cache/logwatch/logwatch.JfqYEjoR/http-archive
-rw------- 1 root root 136M Dec 10 04:02 /var/cache/logwatch/logwatch.TQ1W0oSY/http-archive
-rw------- 1 root root 102M Dec  5 04:02 /var/cache/logwatch/logwatch.4bNkiOtC/http-archive
-rw------- 1 root root 141M Dec 11 04:02 /var/cache/logwatch/logwatch.wyki8BfU/http-archive
-rw------- 1 root root 131M Dec  4 04:02 /var/cache/logwatch/logwatch.Vu1rC7C5/http-archive
-rw------- 1 root root 124M Nov 19 04:02 /var/cache/logwatch/logwatch.NebxU7Gy/http-archive
-rw------- 1 root root 132M Dec  9 04:02 /var/cache/logwatch/logwatch.g8JybocR/http-archive
-rw------- 1 root root 113M Dec 12 04:02 /var/cache/logwatch/logwatch.2gQUgKHj/http-archive
-rw------- 1 root root 127M Dec  2 04:02 /var/cache/logwatch/logwatch.HQ0zM4o7/http-archive

Environment

Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content