Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Squid: cannot enable Access_Log ???

Status
Not open for further replies.

Luys

MIS
Aug 17, 2003
7
NL
I tried the following to get access-logging enabled on Squid:

Added the following to squid.conf:
cache_access_log /var/squid/logs/access.log

Reread the config-file with:
squid -k reconfigure

But alas, no access.log is written! Strange thing is that access_log used to be enabled (same entry in the squid.conf file), but we needed to temporarily disable it. I disabled it in basically the same way (removed the entry and ran squid -k reconfigure).

Squid v2.0 on Slackware Linux (not sure which version)

Anybody any ideas? If possible without any inconvenience for the users.

TIA,
Richard
 
the logs directory has to have the user nobody and the group nogroup (or nobody depending on your system setup) ... or with the permissions of anybody being able to write to those directories ...
 
Jad,

Thanks for your reply, but the directory-rights and ownership weren't changed. I tried a different approach which worked:

Created an at-job to run around midnight (not much people in the office around midnight :) ) to shutdown and start squid. When I came in this morning, I found the access-log file in the specified directory, and it's happily growing ever after!

Probably the -k reconfigure option does work well for stopping the logging, but cannot start it successfully (maybe a bug?).

Anyway, Problem is Solved!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top