Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-01-2011, 05:59 AM   #1
LQ Newbie
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
Squid access log file

Dear all,

Please help me to analyse squid access log.It was not clear to me how to analyze the file as the time format is not clear.please give some advice as I am a beginner in LINUX.
Also tell me how to run a file in LINUX
Old 09-01-2011, 06:10 AM   #2
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
The format is "Unix time" (seconds since Jan 1, 1970) with millisecond resolution.
You can use perl to make the time human readable.
perl -pe 's/\d+/localtime($&)/e' /var/log/squid/access.log
or use log parsers that will produce pretty reports from squid logs as web pages, like webalizer.

Also tell me how to run a file in LINUX
Which file do you mean?
Make the file executable
chmod +x file
Kind regards

Last edited by repo; 09-01-2011 at 06:30 AM.


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
Deleted access.log file from squid evocage Red Hat 3 08-24-2011 04:18 AM
Analyze squid access log file harshaabba Linux - Software 1 06-19-2011 08:40 AM
squid proxy access.log file problem. nishith Linux - Server 1 08-06-2008 04:17 AM
Squid logging access.log file revinking Linux - Newbie 1 07-28-2008 06:02 AM
access.log (squid) file, adding Logins mizard Linux - Networking 4 09-27-2005 08:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:50 AM.

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