LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Squid is running but my logs are not being written (https://www.linuxquestions.org/questions/linux-software-2/squid-is-running-but-my-logs-are-not-being-written-203114/)

Dagman 07-09-2004 01:46 PM

Squid is running but my logs are not being written
 
Greetings,

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.

theparadigm 07-10-2004 09:17 AM

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.

neo77777 07-10-2004 10:18 PM

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.

Dagman 07-12-2004 11:09 AM

Re
 
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.

theparadigm 07-13-2004 07:11 AM

It's not just a firewall issue?

try running something like:
export HTTP_PROXY=http://127.0.0.1:3128; curl -I http://google.com
(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.

Avatar 07-13-2004 08:12 AM

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.


All times are GMT -5. The time now is 04:39 AM.