OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • Limit squid logging to avoid unnecessary messages
« previous next »
  • Print
Pages: [1]

Author Topic: Limit squid logging to avoid unnecessary messages  (Read 4240 times)

skywalker007

  • Full Member
  • ***
  • Posts: 147
  • Karma: 5
    • View Profile
Limit squid logging to avoid unnecessary messages
« on: October 25, 2019, 09:29:02 pm »
My squid log gets flooded with messages like this:
127.0.0.1 TCP_MISS/200 1690 GET cache_object://localhost/counters

Anyone know how to filter out those messages so I can focus on real access log from my clients?

thanks! Till
Logged
System1: Qotom Q310G4
System2: APU2C4

hbc

  • Hero Member
  • *****
  • Posts: 501
  • Karma: 47
    • View Profile
Re: Limit squid logging to avoid unnecessary messages
« Reply #1 on: October 28, 2019, 03:50:59 pm »
Do you have 3rd party software active, monitoring via cache manager? These are no log entries that occure in default settings.

You could try:

Code: [Select]
acl exclude dst localhost
access_log none exclude
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

skywalker007

  • Full Member
  • ***
  • Posts: 147
  • Karma: 5
    • View Profile
Re: Limit squid logging to avoid unnecessary messages
« Reply #2 on: November 14, 2019, 02:14:50 pm »
thanks for this, I assume it comes from the netdata plugin which also monitors squid.
Where would I put those manual overwrites?
Logged
System1: Qotom Q310G4
System2: APU2C4

hbc

  • Hero Member
  • *****
  • Posts: 501
  • Karma: 47
    • View Profile
Re: Limit squid logging to avoid unnecessary messages
« Reply #3 on: November 14, 2019, 02:21:07 pm »
squid.conf
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

skywalker007

  • Full Member
  • ***
  • Posts: 147
  • Karma: 5
    • View Profile
Re: Limit squid logging to avoid unnecessary messages
« Reply #4 on: November 14, 2019, 02:23:43 pm »
Am I not overwriting it once I do a change in the UI then?
Logged
System1: Qotom Q310G4
System2: APU2C4

JonathanLee

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: Limit squid logging to avoid unnecessary messages
« Reply #5 on: March 18, 2024, 04:31:17 pm »
Quote from: hbc on October 28, 2019, 03:50:59 pm
Do you have 3rd party software active, monitoring via cache manager? These are no log entries that occure in default settings.

You could try:

Code: [Select]
acl exclude dst localhost
access_log none exclude

Thank you this also works in other Squid servers.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • Limit squid logging to avoid unnecessary messages
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2