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

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

 




--------------------------------------------------
From: "Geoff Millikan" <gmillikan@xxxxxxxxxxxxx>
Sent: 18 February, 2010 17:15
To: <users@xxxxxxxxxxxxxxxx>
Subject: Custom Log Format -> Adding milliseconds to timestamp -> %{format}t

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/


Geoff,

Actually the log file does show the time and date of the request being made:
1 2 3 4 5 6 7 www.cryptodan.net static-173-73-4-106.washdc.fios.verizon.net - - [18/Feb/2010:20:08:04 +0000] "GET /forums/Themes/default/TPShout.css.css?fin11 HTTP/1.1" 404 258

1 - Domain Accessed
2 - Remote IP making the request
3 - Time and Date of the request based on the system time and date (should always be set to GMT/UTC) to make issues easier to troubleshoot.
4 - Content
5 - HTTP Protocol Version used
6 - HTTP Status Code
7 - Size of request

You can use simple programs to search for information you want in the log files. You could also install and configure webalizer to easily group like IP Addresses to better troubleshoot your issues.

Thanks,
Dan

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[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