Custom Log Format -> Adding milliseconds to timestamp -> %{format}t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear List,

Has anyone figured out how to add milliseconds to the date and time the
request was made for logging?  Something like the below Common Log Format
where the ":1234" represents microseconds:

127.0.0.1 - - [18/Feb/2010:17:02:37:1234 +0000] "GET /favicon.ico HTTP/1.1"
200 145 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"

The reason I ask is because when we're doing 30 to 50 requests per second
it's getting tough to separate log entries when we do Customer tracking
analysis and debugging. I'm not talking about %T or %D here (time taken to
the load the request), I'm talking about the date and time the request was
made.

Maybe setting and using an environment variable like %{FOOBAR}e would work?

http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats

Thanks,

http://www.t1shopper.com/

Attachment: smime.p7s
Description: S/MIME cryptographic signature


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux