Squid log viewer

Protecting your Linux box
Post Reply
turab
Company Havaldaar Major
Posts: 154
Joined: Thu Dec 15, 2005 3:36 pm
Contact:

Squid log viewer

Post by turab »

Salam,
Is there any log viewer for access.log of squid ?

Regards,
Turab
Good Judgement comes from Experience and Experience comes from bad Judgement!!
The more I know, the more I realize I don't know!?
The easiest way to find out is to try it!!!
assumption is the mother of all f*** ups

Register Lynx user # 425340
Saad Khan
Company Havaldaar Major
Posts: 155
Joined: Sun Jun 11, 2006 6:19 pm
Location: Karachi

Post by Saad Khan »

use squid analysis report generator, it will give you detail report.
http://sarg.sourceforge.net/
turab
Company Havaldaar Major
Posts: 154
Joined: Thu Dec 15, 2005 3:36 pm
Contact:

Post by turab »

Smoothwallexpress
Good Judgement comes from Experience and Experience comes from bad Judgement!!
The more I know, the more I realize I don't know!?
The easiest way to find out is to try it!!!
assumption is the mother of all f*** ups

Register Lynx user # 425340
Saad Khan
Company Havaldaar Major
Posts: 155
Joined: Sun Jun 11, 2006 6:19 pm
Location: Karachi

Post by Saad Khan »

its a firewall, and u were interested in log viewer :)
sevensins
Havaldaar
Posts: 117
Joined: Tue Apr 13, 2004 1:45 pm
Location: PAKISTAN
Contact:

Post by sevensins »

sawmill
Regards,

-----------------------------------------------------------------
A wise monkey never monkies w/ another monkey's monkey!
turab
Company Havaldaar Major
Posts: 154
Joined: Thu Dec 15, 2005 3:36 pm
Contact:

Post by turab »

Salam Saad,
Thanks ;)
Good Judgement comes from Experience and Experience comes from bad Judgement!!
The more I know, the more I realize I don't know!?
The easiest way to find out is to try it!!!
assumption is the mother of all f*** ups

Register Lynx user # 425340
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Post by kbukhari »

you can use this scrip
#!/bin/bash

# srcipt for fine tunning the squid access.log file

tail -f /var/log/squid/access.log | awk '{printf(" %-17s | %-27s |
%-7s | %-s |%-s\n",$3,$4,$5,$6,substr($7,0,30))}'

if not sure how to use then please ask me
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

use the code tag for such commands, and use \ where wrapping won't work:

Code: Select all

tail -f /var/log/squid/access.log | \
awk '{printf(" %-17s | %-27s | %-7s | %-s |%-s\n",$3,$4,$5,$6,substr($7,0,30))}' 
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Post by kbukhari »

lambda wrote:use the code tag for such commands, and use \ where wrapping won't work:

Code: Select all

tail -f /var/log/squid/access.log | \
awk '{printf(" %-17s | %-27s | %-7s | %-s |%-s\n",$3,$4,$5,$6,substr($7,0,30))}' 
thanks to correct me
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
Post Reply