Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-13-2011, 04:33 AM
|
#1
|
Member
Registered: Nov 2009
Posts: 109
Rep:
|
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
|
|
|
04-13-2011, 07:23 AM
|
#2
|
Member
Registered: Sep 2009
Location: Indiana, USA
Distribution: SLES, SLED, OpenSuse, CentOS, ubuntu 10.10, OpenBSD, FreeBSD
Posts: 195
Rep:
|
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.
|
04-13-2011, 07:35 AM
|
#3
|
Member
Registered: Nov 2009
Posts: 109
Original Poster
Rep:
|
@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
|
|
|
All times are GMT -5. The time now is 03:03 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|