LinuxQuestions.org
Visit Jeremy's Blog.
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 08-06-2008, 04:23 AM   #1
nishith
Member
 
Registered: Aug 2008
Posts: 124

Rep: Reputation: 15
Exclamation Squid Proxy is unable to log "access.log" file.


Using FC6,X86_64,Squid as a transparent proxy server with 3128 port & iptable NAT rules.

Below is my squid.conf access.log file entry.

access_log /var/log/squid/access.log squid

Now,from the last 1 month,I am unable to see any files in access.log file. It shows 0 bytes. LAN users can access internet,but as an administrator,I am unable to check access logs through SARG tool.

What to do? How to sort out this "access.log" file problem?

Below is my access.log file permission.

-rw-r----- 1 squid squid 51453214 Aug 6 14:08 access.log
-rw-r----- 1 squid squid 16402992 Aug 3 04:03 access.log.1.gz
-rw-r----- 1 squid squid 14094918 Jul 27 04:03 access.log.2.gz
-rw-r----- 1 squid squid 10417650 Jul 20 04:03 access.log.3.gz
-rw-r----- 1 squid squid 29096 Aug 6 13:55 cache.log
-rw-r----- 1 squid squid 24714 Aug 3 04:03 cache.log.1.gz
-rw-r----- 1 squid squid 21185 Jul 27 04:03 cache.log.2.gz
-rw-r----- 1 squid squid 1616684 Jul 20 04:03 cache.log.3.gz
-rw-r--r-- 1 root root 10471 Aug 6 12:30 squid.out
-rw-r----- 1 squid squid 72105163 Aug 6 14:08 store.log
-rw-r----- 1 squid squid 37367454 Aug 3 04:03 store.log.1.gz
-rw-r----- 1 squid squid 33106680 Jul 27 04:03 store.log.2.gz
-rw-r----- 1 squid squid 25945773 Jul 20 04:03 store.log.3.gz

What to do?


Waiting for Replies,

Nishith Vyas.
 
Old 08-06-2008, 09:26 AM   #2
junpa
Member
 
Registered: Aug 2008
Location: Northern Hemisphere
Distribution: Slackware, OpenVMS, fbsd
Posts: 50

Rep: Reputation: 16
From your previous post it seems that you did some kind of upgrade.
You may want to go back over your configuration files for squid and SARG and make sure the settings are still the same.

Also the listing shows access.log is greater than 0 bytes
 
Old 08-07-2008, 04:21 AM   #3
nishith
Member
 
Registered: Aug 2008
Posts: 124

Original Poster
Rep: Reputation: 15
Cool

Quote:
Originally Posted by junpa View Post
From your previous post it seems that you did some kind of upgrade.
You may want to go back over your configuration files for squid and SARG and make sure the settings are still the same.

Also the listing shows access.log is greater than 0 bytes
I have 2 Squid Proxy servers in my office.

Now,I have same configuration of both squid servers.But,only 1st Squid Server isn't generating access.log file.

the 2nd squid server is working normally & SARG is running on this linuxbox.

I would like to know that If both squid proxy settings are same,then why One Squid server can't make output of access.log file?

My syslog service is also running fine.Tell me what are the other services needs to be check for squid access.log ?
 
Old 08-07-2008, 08:05 AM   #4
sleepyhomme
LQ Newbie
 
Registered: Jan 2006
Posts: 28

Rep: Reputation: 15
Maybe have a check on the logrorate file for the squid.

See whether there is any "postrotate" directive which reload the squid.
Code:
killall -HUP squid
 
Old 08-08-2008, 02:07 AM   #5
nishith
Member
 
Registered: Aug 2008
Posts: 124

Original Poster
Rep: Reputation: 15
Cool

Quote:
Originally Posted by sleepyhomme View Post
Maybe have a check on the logrorate file for the squid.

See whether there is any "postrotate" directive which reload the squid.
Code:
killall -HUP squid
"killall -HUP squid" command is showing no error message.
After the above commands,what needs to be check for squid access.log?

Waiting.
 
Old 08-09-2008, 12:23 AM   #6
sleepyhomme
LQ Newbie
 
Registered: Jan 2006
Posts: 28

Rep: Reputation: 15
I mean if the reload is missing from post-rotate, the daemon won't be able to append the log to the file.

If it is there and the log still 0 bytes, i got no idea.. See whether there is any experts can help. Please let me know the root cause too!
 
Old 08-10-2008, 01:00 AM   #7
nishith
Member
 
Registered: Aug 2008
Posts: 124

Original Poster
Rep: Reputation: 15
Cool

Quote:
Originally Posted by sleepyhomme View Post
I mean if the reload is missing from post-rotate, the daemon won't be able to append the log to the file.

If it is there and the log still 0 bytes, i got no idea.. See whether there is any experts can help. Please let me know the root cause too!
OK Sir.

I will try in my way.

Thanks for your support.If i get soln.then I will put onto LQ also.
 
  


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 proxy access.log file problem. nishith Linux - Server 1 08-06-2008 04:17 AM
squid "access.log" access denied no user name jatender Linux - Server 1 10-02-2007 05:28 AM
New SQUID user: How to clear the "access.log" and "store.log" automatically? yuzuohong Linux - Networking 2 12-02-2006 06:37 AM
Change access.log timestamp,squid proxy gordonb Linux - Software 1 04-20-2006 01:28 AM
website access monitor and log using Squid Proxy in FC4 tsaravan Linux - Networking 1 02-10-2006 06:09 AM


All times are GMT -5. The time now is 08:11 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration