LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-01-2011, 04:59 AM   #1
agar_000
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, 05:10 AM   #2
repo
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.
Code:
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.
http://www.webalizer.org/

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

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


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


All times are GMT -5. The time now is 10:58 PM.

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