[squid-users] Squid doesn't write logs via rsyslog

Antony Stone Antony.Stone at squid.open.source.it
Mon Jun 8 11:02:07 UTC 2015


On Monday 08 June 2015 at 12:53:00 (EU time), Robert Lasota wrote:

> the problem is it still writes logs to files /var/log/access.log or
> /opt/var/log/access.log (depends what I set in conf) but never to rsyslog.
>
> I mean, I have set rsyslog to it send logs to remote central server, and
> from other apps like sshd or named its working and rsyslog send them , but
> Squid still not care that and writes locally to files.
>
> I set different combinations in squid.conf but nothing, even:
> access_log syslog squid
> cache_log syslog squid.
> ..also nothing

You appear to be missing the facility and priority settings (ie: telling 
syslogd how to handle the messages).

See http://www.squid-cache.org/Doc/config/access_log/

Try something such as:

access_log syslog:daemon.info


Regards,


Antony.

-- 
I don't know, maybe if we all waited then cosmic rays would write all our 
software for us. Of course it might take a while.

 - Ron Minnich, Los Alamos National Laboratory

                                                   Please reply to the list;
                                                         please *don't* CC me.


More information about the squid-users mailing list