LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-05-2011, 10:17 PM   #1
bunpis
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
Question where is time on the squid log file


Hi there..

I viewed a squid log file and I am confused on what the following 13 digits indicate..../var/log/dansguardian/access.log:"1301956620.901"
Please help!!
 
Old 04-06-2011, 01:43 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,526

Rep: Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503
Hi,

This is the time elapsed in seconds
Quote:
The native format for Squid

The format is:

time elapsed remotehost code/status bytes method URL rfc931 peerstatus/peerhost type
Using
Code:
perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e' <access.log
you can parse the log file nad convert time to human readable.
To use a more convenient logging, have a look at logformat directive.

Regards
 
1 members found this post helpful.
Old 04-13-2011, 06:15 PM   #3
bunpis
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Wink bunpis

Thanks for the help.."bathory" you make the world go round...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding date and time to Squid access.log jonette20 Linux - General 5 09-21-2009 08:41 AM
Tool to parse squid log file. linuxlover.chaitanya Linux - Software 3 02-09-2009 12:40 AM
Squid Proxy is unable to log "access.log" file. nishith Linux - Server 6 08-10-2008 01:00 AM
How to graph contents of squid log file gmtonga Linux - Newbie 1 01-22-2008 07:01 AM
what log file generator that support squid log? heero82 Linux - Software 2 07-11-2003 09:52 PM


All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration