keeping old apache logs

Discussion in 'General' started by the_spy, Jun 29, 2007.

  1. the_spy

    the_spy New Member

    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 :)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  3. the_spy

    the_spy New Member

    Oh yes I totally forgot the log folders in websites

    Thanks
     

Share This Page