PDA

View Full Version : keeping old apache logs


the_spy
29th June 2007, 14:53
System: ispconfig 2.2.14, debian etch, apache2 ..

I see that only the last 2 days are in this folder:

server:/var/log/httpd# ls -l
total 13240
lrwxrwxrwx 1 root root 46 2007-06-29 00:00 ispconfig_access_log -> /var/log/httpd/ispconfig_access_log_2007_06_29
-rw-r--r-- 1 root root 9013948 2007-06-28 23:59 ispconfig_access_log_2007_06_28
-rw-r--r-- 1 root root 4510562 2007-06-29 13:46 ispconfig_access_log_2007_06_29


Is there a way to keep for example the last 30 or 60 days, and maybe automatically compressed in .gz ? there is a law in my country, normally I should keep logs for the last 6 months. 1 or 2 months will be enough, but 2 days not.

Thanks :)

till
29th June 2007, 16:40
All logfiles are kept in the logs directory of the website. The logfiles above are just temporary logfiles where data is stored until it is splitted.

the_spy
29th June 2007, 16:45
Oh yes I totally forgot the log folders in websites

Thanks