Web Development Thread, Format of Squid log time stamp in Coding and Web Development; In March uk101man posted a nice script to read the URL history files kept by Internet Explorer in a user's ...
-
1st July 2006, 08:33 PM #1
- Rep Power
- 16
Format of Squid log time stamp
In March uk101man posted a nice script to read the URL history files kept by Internet Explorer in a user's profile. I wanted to write a script to process Squid access log for our on-site proxy but I can't workout the the format of the time stamp it uses.
Does anyone how to convert it into a human readble format.
I haven't got the time to go all Blechly Park on its ass.
-
-
IDG Tech News
-
1st July 2006, 09:45 PM #2 Re: Format of Squid log time stamp
isn't it the amount of seconds elapsed since a specific time? 1970?
The format is "Unix time" (seconds since Jan 1, 1970) with millisecond resolution.
Ben
-
-
1st July 2006, 10:24 PM #3
- Rep Power
- 16
Re: Format of Squid log time stamp
Thanks for that Ben.
You're not the same Ben of the Unix Time Stamp .com fame are you?
-
-
1st July 2006, 10:38 PM #4
- Rep Power
- 16
Re: Format of Squid log time stamp
Doh!
Just found this on the Squid mailing list Code:
perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e' <access.log
-
-
2nd July 2006, 12:12 AM #5 Re: Format of Squid log time stamp
You might want to hook something up more permenant. There's serveral log parsers that will produce pretty reports from squid logs as web pages.
-
-
2nd July 2006, 11:28 AM #6 Re: Format of Squid log time stamp
@IT : nope nothing to do with that.
Cheers.
-
-
2nd July 2006, 07:36 PM #7 Re: Format of Squid log time stamp
@IT Feel the urge to share?
-
SHARE: 
Similar Threads
-
Replies: 3
Last Post: 13th December 2007, 04:38 PM
-
By Samson in forum Scripts
Replies: 3
Last Post: 4th September 2007, 07:40 AM
-
Replies: 20
Last Post: 20th April 2007, 08:55 AM
-
By gwendes in forum General Chat
Replies: 45
Last Post: 10th February 2007, 05:38 PM
-
By kingswood in forum *nix
Replies: 22
Last Post: 23rd October 2005, 11:25 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules