Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old October 4th, 2001, 04:09 AM
Sheriff's Avatar
Sheriff Sheriff is offline
Oheim
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Austria
Posts: 69 Sheriff User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
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!

Reply With Quote
  #2  
Old October 4th, 2001, 10:02 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Apache log files - newbie


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway