Handling logging of queries from keepalived #1979
-
|
In my homelab, I've got a three-node Technitium cluster running on Pi 4Bs. These have keepalived with three virtual IPs configured to balance the load and handle outages. My keepalived config uses dig to query localhost on the host interface, e.g.: Unfortunately this sticks an entry in my query logs every 2 seconds. Sure, I can filter these out, but I'd rather just not log them in the first place. How might I stop these queries being logged? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
|
Check against the API instead. The one to use is the SSO Status because it does not require a token. All API Calls have a status response at the end. So just check for status ok.
A Status OK will be a zero 0, and any failure will be non-zero. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for asking. There is no option to ignore query logs for any specific criteria. If you are using one of the Query Logs app, you can ignore these query logs when you query the db manually. |
Beta Was this translation helpful? Give feedback.
So just evaluated this API option. So, this API call will tell you if the DNS server is up as in that the web service is running, and it will tell you if the DNS resolution is working for the specified domain name. This DNS resolution is done internally and wont get logged anywhere else. The only thing it wont be able to tell is if the port 53 is open and that it is able to accept DNS requests. Does that sound reasonable for you to use it for health check?