LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-12-2010, 07:52 AM   #1
vonedaddy
Member
 
Registered: Aug 2004
Location: Philadelphia,PA
Posts: 185

Rep: Reputation: 17
Logwatch problems on Squid Proxy


Any help on this would be greatly appreciated.

I have a squid proxy server (which I am very new too) which all traffic from my office goes through. The proxy itself is working fine, but I can not get logwatch to email me a daily summary.

logrotate seems to be throwing an error:

# logrotate /etc/logrotate.conf
error: squid:1 duplicate log entry for /var/log/squid/access.log


My /etc/logrotate.d/squid file is below... My access logs are in /logs/squid not in /var/log/squid.

Code:
# cat /etc/logrotate.d/squid 
/var/log/squid/access.log {
    weekly
    rotate 5
    copytruncate
    compress
    notifempty
    missingok
}
/var/log/squid/cache.log {
    weekly
    rotate 5
    copytruncate
    compress
    notifempty
    missingok
}

/var/log/squid/store.log {
    weekly
    rotate 5
    copytruncate
    compress
    notifempty
    missingok
# This script asks squid to rotate its logs on its own.
# Restarting squid is a long process and it is not worth
# doing it just to rotate logs
    postrotate
      /usr/sbin/squid -k rotate
    endscript
}
 
Old 10-12-2010, 10:19 AM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by vonedaddy View Post
My access logs are in /logs/squid not in /var/log/squid.
So, why didn't you change accordingly?
 
  


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
Squid as a reverse proxy, acl problems Mustafa Ismail Mustafa Linux - Networking 1 06-12-2010 07:29 PM
Squid Proxy Server Problems unixgr Linux - Newbie 1 07-10-2009 08:00 AM
Problems with squid running as transparent proxy Teres Linux - Networking 6 12-13-2006 08:06 PM
Has anyone set up a transparent proxy with Squid 3.0 yet? Problems.. Pcghost Linux - Networking 0 10-23-2004 02:31 PM
Proxy problems!!!! Squid urfrndvd Linux - Networking 1 08-23-2002 02:12 PM

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

All times are GMT -5. The time now is 06:54 AM.

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