LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-13-2011, 04:33 AM   #1
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Rep: Reputation: 16
Squid log report by time


Dear all,

Does anyone know any log report generator (e.g. webalizer or SARG) which can display Squid's access log by time?
What I mean is I want to see that e.g. during 8:00 till 8:59, what is the most popular site, how many hit, and by whom. I want the report to be able to make a sum per hour.

Awstats can display sum of request per hour, but can't display what sites being requested....

What I actually need is I wan't to make sure that during office hour my clients doesn't open non job related pages, especially during specific hour. We allow our clients to open fun sites (such facebook) during break time, but we need to monitor them during work hour.

I can build a script to get what I want, but I don't want to re-invent the wheel. And I know many other people can do this task much better than I am.

regards,

Yoachan
 
Old 04-13-2011, 07:23 AM   #2
never say never
Member
 
Registered: Sep 2009
Location: Indiana, USA
Distribution: SLES, SLED, OpenSuse, CentOS, ubuntu 10.10, OpenBSD, FreeBSD
Posts: 195

Rep: Reputation: 37
Take a look at lightsquid.

See if that does what you need, you can look by day, user, time ...


If you want to look at squids logs with a human readable time try something like this.

For realtime:
Code:
tail -f access.log | perl -pe's/([\d.]+)/localtime $1/e;'
Or something like this to just step through the logs
Code:
less access.log | perl -pe's/([\d.]+)/localtime $1/e;'
 
1 members found this post helpful.
Old 04-13-2011, 07:35 AM   #3
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Original Poster
Rep: Reputation: 16
@never say never:
Thanks. I'll give lightsquid a shot.

And that realtime tail with pipe, I never thought about that before.
That will be so great.
thanks again.

regards,

Yoachan
 
  


Reply



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
[SOLVED] where is time on the squid log file bunpis Linux - Newbie 2 04-13-2011 05:15 PM
squid /var/log/squid/access.log problems fahadabdillahi Linux - Server 0 12-17-2010 01:10 AM
Adding date and time to Squid access.log jonette20 Linux - General 5 09-21-2009 07:41 AM
Lire (log analysis, log report) no report in Mandriva 2005 LE (desktop usage) Emmanuel_uk Mandriva 0 01-16-2006 02:11 AM
How to print the log file report in squid? heero82 Linux - Software 0 06-18-2003 12:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:50 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
Open Source Consulting | Domain Registration