|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
||||
|
||||
|
Apache log files - newbie
Ok, I'm new to apache, so please be patient with me...
I have this Virtual host: <VirtualHost www.mydomain.com> AddType application/x-httpd-php .html DocumentRoot /www/domain/home/ User wwwrun ServerName www.mydomain.com ServerSignature On CheckSpelling On # Actually creates Logfiles ErrorLog /www/mydomain/log/error_log AgentLog /www/mydomain/log/browser_log TransferLog /www/mydomain/log/access_log RefererLog /www/mydomain/log/referer_log # Rotates the Logfiles every 24 hours ErrorLog "|rotatelogs /www/mydomain/log/old_error_log 86400" AgentLog "|rotatelogs /www/mydomain/log/old_browser_log 86400" TransferLog "|rotatelogs /www/mydomain/log/old_access_log 86400" RefererLog "|rotatelogs /www/mydomain/log/old_referer_log 86400" </VirtualHost> and it works fine... Just how do I change the file name of the old og files? old_access_log.1002153600 doesn't tell me much... I guess I have to compress them in order to do change the file name into a human readable date, huh? And I have no Idea on how to pull log files together say into a monthly one? So I would have like the realtime log, the 24 hour log, and a monthly log??? Thanks for your help...btw...the apache docs didn't help me much... (Sheriff
__________________
There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence. God is just hacker who rooted the world! |
|
#2
|
|||
|
|||
|
If rotatelogs doesn't do what you wanted, use another one as there are couple hundred different ones out here. Search google.com to find out.
>> the apache docs didn't help me much Because log rotation has nothing to do with Apache and it's beyond the scope to provide details on their website. So grab a UNIX System Administration book and how to do this kind of daily task, and do it automatically. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Apache log files - newbie |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|