[squid-users] Exclude transaction from being logged
rousskov at measurement-factory.com
Tue Mar 2 02:39:49 UTC 2021
On 3/1/21 8:35 PM, Service MV wrote:
> Unfortunately, the log that I whant to avoid is being still logged.
Do the unwanted logged records match zabbix_proxy?
* If yes, I am out of ideas. If you share a debugging log dedicated to
the incorrectly logged transaction, I may be able to figure it out.
* If not, then perhaps I misunderstood what your zabbix_proxy ACL means
to you. You may need a different ACL.
> El vie., 26 feb. 2021 17:14, Alex Rousskov
> <rousskov at measurement-factory.com
> <mailto:rousskov at measurement-factory.com>> escribió:
> On 2/26/21 2:58 PM, Service MV wrote:
> > Ok, but whit this two lines disabled completely access logs. I've no
> > more access_log directives configured.
> Yeah, this outcome is surprising to many admins (and there are also
> related bugs in Squid code).
> To see all other records, add access_log lines that define how you want
> the rest of the records to be logged. For example, if you want Squid to
> use the default record format and other defaults, then try this untested
> acl zabbix_proxy src x.x.x.x
> access_log none zabbix_proxy
> access_log daemon:/specify/exact/log/file/location/here
> You can see the default access_log configuration specific to your Squid
> build in squid.conf.documented.
> > El vie., 26 feb. 2021 16:21, Alex Rousskov escribió:
> > On 2/26/21 12:36 PM, Service MV wrote:
> > > NONE/000 0 NONE error:transaction-end-before-headers -
> HIER_NONE/- -
> > >
> > > I know that this is not an error. But I want to exclude this
> log when
> > > the Zabbix server checks the port status of SQUID. Zabbix
> server does
> > > not use the SQUID as a proxy.
> > If you do not want to see what Zabbix is doing to your Squid,
> you can
> > exclude its requests from access.log. For example, if you do
> not want to
> > see any requests from Zabbix IP address:
> > acl zabbix_proxy src x.x.x.x
> > access_log none zabbix_proxy
> > HTH,
> > Alex.
More information about the squid-users