RE: About Access Log

This is a discussion on RE: About Access Log within the Apache forums in Application Servers & Tools category; ________________________________ From: TK [mailto:tkchiew @ gmail.com] Sent: Friday, November 18, 2005 2:03 PM To: users@httpd.apache.org Subject: [users @ httpd] About Access Log Hi, I'm running Apache 2.0 on Windows XP SP2. I have 2 questions about Apache access log. 1. How could I get a fine-grained time stamp for the time (%t) in millisecond? 2. Where (in httpd.conf file) should I place the TransferLog command so that I could rotate the log file (named as access.log)? My command line is as below: TransferLog "| /bin/rotatelogs /logs/access 86400" (Additional question: Is the duration (86400 s) counted based on a normal day ...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-18-2005, 02:13 PM
Wagner, Aaron
Guest
 
Default RE: About Access Log




________________________________

From: TK [mailto:tkchiew@gmail.com]
Sent: Friday, November 18, 2005 2:03 PM
To: users@httpd.apache.org
Subject: [users@httpd] About Access Log


Hi,
I'm running Apache 2.0 on Windows XP SP2. I have 2 questions
about Apache access log.

1. How could I get a fine-grained time stamp for the time (%t)
in millisecond?

2. Where (in httpd.conf file) should I place the TransferLog
command so that I could rotate the log file (named as access.log)? My
command line is as below:
TransferLog "| /bin/rotatelogs /logs/access 86400"
(Additional question: Is the duration (86400 s) counted
based on a normal day (12am - 12am the next day) or from the moment the
Apache server is started?)


Thanks.


1. don't know the answer to #1


2. CustomLog "|D:/WebCore2/Apache2/bin/rotatelogs.exe
D:/WebCore2/Apache2/logs/history/commonLog.%Y-%m-%d-%H_%M_%S.log 86400
-300" combined
and It looks like mine is rotating every night at midnight.


Thanx
Aaron N Wagner
Monitoring Systems and Network Tools
CCO-Command Center Operations
804.515.6298



TK


Reply With Quote
  #2  
Old 11-18-2005, 02:38 PM
TK
Guest
 
Default Re: About Access Log

Does it mean that you have a log file named as commonLog.(Date and Time).log
stored in history directory? After being rotated, what is the name of the
log file and where is it stored?
BTW, what does the '-300' mean?


On 11/18/05, Wagner, Aaron <aaron.wagner@bankofamerica.com> wrote:
>
>
> ------------------------------
> *From:* TK [mailto:tkchiew@gmail.com]
> *Sent:* Friday, November 18, 2005 2:03 PM
> *To:* users@httpd.apache.org
> *Subject:* [users@httpd] About Access Log
>
> Hi,
> I'm running Apache 2.0 on Windows XP SP2. I have 2 questions about Apache
> access log.
> 1. How could I get a fine-grained time stamp for the time (%t) in
> millisecond?
> 2. Where (in httpd.conf file) should I place the TransferLog command so
> that I could rotate the log file (named as access.log)? My command line is
> as below:
> TransferLog "| /bin/rotatelogs /logs/access 86400"
> (Additional question: Is the duration (86400 s) counted based on a normal
> day (12am - 12am the next day) or from the moment the Apache server is
> started?)
> Thanks.
> 1. don't know the answer to #1
> 2. CustomLog "|D:/WebCore2/Apache2/bin/rotatelogs.exe
> D:/WebCore2/Apache2/logs/history/commonLog.%Y-%m-%d-%H_%M_%S.log 86400 -300"
> combined
> and It looks like mine is rotating every night at midnight.
> Thanx
> Aaron N Wagner
> Monitoring Systems and Network Tools
> CCO-Command Center Operations
> 804.515.6298
> TK
>
>


Reply With Quote
  #3  
Old 11-18-2005, 03:01 PM
Joshua Slive
Guest
 
Default Re: About Access Log

On 11/18/05, TK <tkchiew@gmail.com> wrote:
> Does it mean that you have a log file named as commonLog.(Date and Time).log
> stored in history directory? After being rotated, what is the name of the
> log file and where is it stored?
>
> BTW, what does the '-300' mean?


Your questions all seem to be answered here:
http://httpd.apache.org/docs/2.0/pro...otatelogs.html

> > 1. How could I get a fine-grained time stamp for the time (%t) in

> millisecond?


As far as I can tell, strftime (at least on windows) does not support
sub-second time display.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:22 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.