Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-09-2004, 02:46 PM   #1
LQ Newbie
Registered: Jul 2004
Location: California
Posts: 3

Rep: Reputation: 0
Squid is running but my logs are not being written


I am new to this forum and have a relatively simple question. I have successfully installed squid and I can verify that it is running by doing
ps ax|grep squid. I can also verify that the cache.log is being written everytime I start Squid. However, my access.log and store.log are all blank.

It seems obvious to me that squid is not logging my activity but I can't understand why.

I have a machine called nyquest which has as its gateway the IP address of the machine running Squid (hydra). I can browse on nyquest and I get all my http pages loaded but nothing is being written in the logs on hydra.

Can anyone help me with this one? What am I missing?

Thanks in advance.
Old 07-10-2004, 10:17 AM   #2
Registered: Nov 2003
Location: Australia :)
Posts: 36

Rep: Reputation: 15
How did you install Squid? From source? From DEB/RPM?
Is squid reporting errors when starting up? e.g. anything in /var/log/messages

Always helps having this information.

Last edited by theparadigm; 07-10-2004 at 10:20 AM.
Old 07-10-2004, 11:18 PM   #3
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Check permissions on /squid/log/directory (whatever it is set to in your squid.conf), make sure you have user squid and this user has rw permissions for the squid log files.
Old 07-12-2004, 12:09 PM   #4
LQ Newbie
Registered: Jul 2004
Location: California
Posts: 3

Original Poster
Rep: Reputation: 0

I installed Squid as a package that was included in Red Hat 9 which included Linux 2.4.

I discovered that I can generate writing to the logs by using squidclient application but little else. As far as permissions the squid log directory is owned by user squid and the group is also squid. In my squid.conf file I have the log files designated as /var/log/squid/access.log, store.log, cache.log.

This is so frustrating because I know that I am so close.
Old 07-13-2004, 08:11 AM   #5
Registered: Nov 2003
Location: Australia :)
Posts: 36

Rep: Reputation: 15
It's not just a firewall issue?

try running something like:
export HTTP_PROXY=; curl -I
(If curl isn't installed, you can get it from your Redhat CDs)

If curl returns back a "HTTP/1.0 302", and Squid reports in your access.log, your good. Try another linux computer in your network (if possible) just the same.
If curl returns back a "HTTP/1.0 500", your squid.conf is probably wrong and you should try reverting back to the original squid.conf that was provided with your RPM. Restart the service and try again.
Old 07-13-2004, 09:12 AM   #6
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 538

Rep: Reputation: 30
Oddly enough, my squid logs everything in /var/log/messages and only certain things in access.log. I use the software called "squint" to parse my logs into a more readable format, and it seems to find the logs OK.

hope this helps.


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
Help me regain control of my server logs! (squid logging) Avatar Linux - Security 8 11-03-2005 08:54 PM
how to are logs written to? robadawb Linux - Newbie 1 11-11-2003 04:56 AM
Squid and rotating logs using crond 80s Linux - Software 0 02-21-2003 04:53 AM
what are the files written by linux OS while running vaibhavk Linux - General 2 01-17-2002 12:40 PM
Im running syslogd. I also have my PIX firewall logs being written to my linux syslog adamrau Linux - Security 2 12-19-2001 02:38 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration