LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-30-2014, 02:53 PM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Squid + SquidAnalyzer: best policy for log files?


Hi,

I'm using a combination of Squid and SquidGuard for web filtering in networks, which works quite good. Usually I deactivate Squid's logs and only keep the SquidGuard logs on.

One of my clients has a network that's a bit larger, and I have to detect some resource hogs that keep eating bandwidth. After a bit of searching, I discovered SquidAnalyzer, which is a great tool for web traffic monitoring. I have it running here in my office, and I really like it.

I wonder what's the best policy for log file handling. SquidAnalyzer reads its data from /var/log/squid/access.log. In a medium to big network, this log file can grow quite big, and I fear the worst with 1000+ simultaneous connections.

Here's the log file section in my squid.conf:

Code:
# Logs
access_log /var/log/squid/access.log squid
cache_store_log /var/log/squid/store.log
cache_log /var/log/squid/cache.log
logfile_rotate 0
How do you guys handle logs with Squid + SquidAnalyzer?
 
Old 10-31-2014, 04:28 AM   #2
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
I'll answer that myself, since I just found out. Best thing is to define a cronjob for rotating Squid logfiles using 'squid -k rotate'.

I've written two HOWTOs on the subject (in French, sorry):

http://www.microlinux.fr/slackware/L...quid-HOWTO.txt

http://www.microlinux.fr/slackware/L...yzer-HOWTO.txt

Cheers,

Niki
 
  


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
Bandwidth quota squid-squidanalyzer ttinvent Linux - Server 0 08-20-2014 09:45 AM
Sample Squid Proxy Log Files harshaabba Linux - Server 6 09-13-2012 07:42 PM
[SOLVED] how to keep more access.log files in squid roopakl Linux - Newbie 4 03-06-2012 07:51 PM
Question about SQUID log files yuzuohong Linux - General 1 01-11-2003 12:13 PM
Squid access.log files davebarnes Linux - Networking 1 10-27-2002 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:03 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