I wanted to customize squid, so that the log’s timestamps are in more humand readable form. I therefore added two lines to “/var/ipfire/proxy/advanced/acls/include.acl”.
logformat simple bla bla bla
access_log stdio:/var/log/squid/access.log logformat=simple
With the first one, I defined my own logformat. With the second one, I told squid to use this logformat.
Worked pretty good. Only problem is, there already is the line
access_log stdio:/var/log/squid/access.log
in the squid.conf. Because of that, squid now prints every entry twice, one with the standard format the other one with my logformat.
How can I “delete” the first entry via the “include.acl” or maybe just add “logformat=simple” behind this entry and spare the second one?
Maybe you can disable the logging entirely from squid.conf by changing the Web User Interface. Then your directive in include.acl would be the only one present?
Only for information:
It is possible to do those customisations, but you should document them very precisely.
The standard way in IPFire is ‘do configuration in the WUI, save generates the program configs’. An update may change this generation process, deleting user configs. Therefore you must check your modifications after each upgrade touching the specific program ( in your case squid ).