[squid-users] squid writes to /var/log/messages

Amos Jeffries squid3 at treenet.co.nz
Mon Dec 21 13:36:20 UTC 2020


On 22/12/20 2:29 am, sampei02 wrote:
>> I can confirm that squid will write to /var/log/messages if syslog logging is
>> enabled AND syslog is configured to write to /var/log/messages (this is the
>> default behaviour on some Linux distributions, such as Debian, but not Ubuntu).
> 
> 
> 
> My distro is Centos7 and rsyslog is enabled and It’s  configured to write to /var/log/messages; it’s the default behaviour.
> But how can I avoid Squid writes into this file? I chose the Squid default log files which are contained into /var/log/squid/ folder.
> 


Removing that "s" command line parameter will indeed stop the rsyslog 
output. You may still get some /var/log/messages entries from the init 
scripts etc.

Amos


More information about the squid-users mailing list