Hello Wiljoh,
You can use the following tag in your sarg.conf file:
# TAG: lastlog n
#      How many report files must be keept in reports directory.
#      The oldest report file will be automatically removed.
#      0 - no limit.
#
#lastlog 0
Yes, we have a maillist for sarg. Please go to
http://web.onda.com.br/orso in the Email list topic.
Bye
Pedro
 
BWJ> Hi,
 
BWJ> I am using SARG <http://web.onda.com.br/orso/index.html>  for nice HTML
BWJ> views of the Squid Logs. All fine, but these take a lot of space and after a
BWJ> couple of weeks, my disk get's full. 
BWJ> I am looking for a way (command) that deletes all SARG-log older then, lets
BWJ> say, 5 days or something. 
 
BWJ> The directory's look like this :
 
BWJ> $ ls -lia
BWJ> total 1306
BWJ> 26996 drwxr-xr-x  12  root  daemon        512     Jul 15 23:55     .
BWJ> 26883 drwxr-xr-x   4   root  daemon        512     Jun  6 10:53     ..
BWJ> 40328 drwxr-xr-x   2   root  daemon      1024     Jul  6 23:55
BWJ> 06Jul2002-06Jul2002
BWJ> 40330 drwxr-xr-x   2   root  daemon      5632     Jul  7 23:55
BWJ> 07Jul2002-07Jul2002
BWJ> 40343 drwxr-xr-x   2   root  daemon  119808     Jul  8 23:57
BWJ> 08Jul2002-08Jul2002
BWJ> 44161 drwxr-xr-x   2   root  daemon  105984     Jul  9 23:56
BWJ> 09Jul2002-09Jul2002
BWJ>  1922 drwxr-xr-x   2   root  daemon  106496     Jul 10 23:57
BWJ> 10Jul2002-10Jul2002
BWJ> 26997 drwxr-xr-x   2   root  daemon   81408     Jul 11 23:56
BWJ> 11Jul2002-11Jul2002
BWJ> 30825 drwxr-xr-x   2   root  daemon   85504     Jul 12 23:56
BWJ> 12Jul2002-12Jul2002
BWJ> 34566 drwxr-xr-x   2   root  daemon      512     Jul 13 23:55
BWJ> 13Jul2002-13Jul2002
BWJ> 34568 drwxr-xr-x   2  root  daemon     1536     Jul 14 23:55
BWJ> 14Jul2002-14Jul2002
BWJ> 34574 drwxr-xr-x   2  root  daemon  108032     Jul 15 23:57
BWJ> 15Jul2002-15Jul2002
BWJ> 27035 -rw-r--r--   1     root  daemon     4748     Jul 15 23:57
BWJ> index.html
BWJ> So, I want do delete all dirs from before 10Jul2002....anyone knows a rm -R
BWJ> command with current-date -5 > older then delete kinda thing ?
 
BWJ> regards
BWJ> Wiljoh
 
BWJ> PS. I understand this is not really a Squid question, but as far as i know,
BWJ> there is no SARG mailinggroup....
Received on Tue Jul 16 2002 - 05:34:48 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:16 MST