ITWombat Posted July 1, 2006 Posted July 1, 2006 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.
plexer Posted July 1, 2006 Posted July 1, 2006 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
ITWombat Posted July 1, 2006 Author Posted July 1, 2006 Thanks for that Ben. You're not the same Ben of the Unix Time Stamp .com fame are you?
ITWombat Posted July 1, 2006 Author Posted July 1, 2006 Doh! Just found this on the Squid mailing listperl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e'
Geoff Posted July 1, 2006 Posted July 1, 2006 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now