Dnia Poniedziałek, 8 Czerwca 2015 13:02 Antony Stone <Antony.Stone@xxxxxxxxxxxxxxxxxxxx> napisał(a)
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
I did that and it helped - logs are sent to remote server BUT unfortunatelly additionally it write them also to /var/log/messages :(
my config is:
[...]
daemon.info @@10.192.2.77:5544
*.info;mail.none;authpriv.none;cron.none /var/log/messages
authpriv.* /var/log/secure
.. and so on
What to do to exclude writing localy to messages ?
Robert
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users