Discussion:
[squid-users] Empty access.log
(too old to reply)
Zebu Lebu
2006-11-22 12:31:21 UTC
Permalink
Hi folks

Please be gentle with me - I'm a helpless noob :)

I have set up Squid on a Windows 2003 box using Serassio's Windows
port and the Kraken Squid Config. All I'm looking to do at the moment,
before moving on to ACLs and Block Lists, is to cache and log Internet
requests.

The caching part is working fine - I've configured a browser on my LAN
with the IP Address and port of the proxy box, generated a load of web
traffic and the cache is filling up nicely, so i know requests are
going through the proxy.

However, the access.log logfile is blank - no activity has been
logged. Do I have to set up authentication for accesses to be logged?
I thought that access would be logged irrespective of whether I'd set
up authentication but, if I've got this wrong, can someone please let
me know?

I've been searching for an answer to this for a while now but can't
find anything on previous positings to this mailing list or any other
group - I've given the 'everyone' group write access to the directory
that the logfile is stored in after reading a post that seemed to
indicate this may be the problem (although that user was running Squid
on Linux) but it didn't help.

Thanks!
Henrik Nordstrom
2006-11-22 16:18:15 UTC
Permalink
Post by Zebu Lebu
However, the access.log logfile is blank - no activity has been
logged. Do I have to set up authentication for accesses to be logged?
I thought that access would be logged irrespective of whether I'd set
up authentication but, if I've got this wrong, can someone please let
me know?
You need an access_log entry in squid.conf for accesses to be logged.

It's completely unrelated to authentication. Only relation is that on
authentication the logs will also include a username..

If you have an access_log entry in your squid.conf then check cache.log
on startup. Perhaps there is a permission issue or similar.

Regards
Henrik
Zebu Lebu
2006-11-22 17:41:42 UTC
Permalink
Hi Henrik

Thanks for getting back to me.

I have indeed got an entry in the config file for my access log - it reads:

access_log "c:/Squid/var/logs/access.log"

This is the correct location of the logfile.

When i open up the cache.log after startup, i can see that there's a
problem with it, as there's an entry in there which reads:

logfileopen: "c:/Squid/var/logs/access.log": (22) Invalid argument

Any more ideas?

Cheers
Post by Henrik Nordstrom
Post by Zebu Lebu
However, the access.log logfile is blank - no activity has been
logged. Do I have to set up authentication for accesses to be logged?
I thought that access would be logged irrespective of whether I'd set
up authentication but, if I've got this wrong, can someone please let
me know?
You need an access_log entry in squid.conf for accesses to be logged.
It's completely unrelated to authentication. Only relation is that on
authentication the logs will also include a username..
If you have an access_log entry in your squid.conf then check cache.log
on startup. Perhaps there is a permission issue or similar.
Regards
Henrik
Zebu Lebu
2006-11-22 20:56:04 UTC
Permalink
Henrik

My bad, i just realised the logfile location is enclosed in quotes.
Removing them has done the trick.

Cheers anyway!
Post by Zebu Lebu
Hi Henrik
Thanks for getting back to me.
access_log "c:/Squid/var/logs/access.log"
This is the correct location of the logfile.
When i open up the cache.log after startup, i can see that there's a
logfileopen: "c:/Squid/var/logs/access.log": (22) Invalid argument
Any more ideas?
Cheers
Post by Henrik Nordstrom
Post by Zebu Lebu
However, the access.log logfile is blank - no activity has been
logged. Do I have to set up authentication for accesses to be logged?
I thought that access would be logged irrespective of whether I'd set
up authentication but, if I've got this wrong, can someone please let
me know?
You need an access_log entry in squid.conf for accesses to be logged.
It's completely unrelated to authentication. Only relation is that on
authentication the logs will also include a username..
If you have an access_log entry in your squid.conf then check cache.log
on startup. Perhaps there is a permission issue or similar.
Regards
Henrik
Continue reading on narkive:
Loading...