mirror of
https://github.com/albertito/dnss.git
synced 2026-04-26 18:05:57 +03:00
[GH-ISSUE #4] Structured query logging #5
Labels
No labels
enhancement
enhancement
pull-request
question
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dnss#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xme on GitHub (Aug 17, 2019).
Original GitHub issue: https://github.com/albertito/dnss/issues/4
Originally assigned to: @albertito on GitHub.
Hello,
I'm currently testing dnss in a lab environment and I can't enable proper logging of all DNS requests. I found in the source code that, apparently, "-v=3" should enable more logging but it does not work. Having proper logging is essential for me. Any tip?
@albertito commented on GitHub (Aug 17, 2019):
Hi!
The DNS request traces don't get output to the logs, but are accessible via the tracing system.
If you enable the monitoring HTTP server with
--monitoring_listen_addr=localhost:8000, then visithttp://localhost:8000/debug/requests?fam=dnsserver&b=0&exp=1you should be able to see the recent queries, get latency distributions, etc.If you go to
http://localhost:8000/you'll find more endpoints, like cache dumps, threading information, and profiling endpoints.Is this enough for your purposes, or you need something like an auditing log written to the system log?
Thanks!
Edit: Needless to say, replace
localhostwith the appropriate address; but please be super careful on public servers as this exposes a lot of data, including user queries, and is only meant for debugging.@xme commented on GitHub (Aug 17, 2019):
Thank you for the quick reply. I'm still discovering the tool and did not test the monitoring server. Looks interesting, however, I think that having a classic flat log file will be valuable (to be indexed by a SIEM or such a tool).
@albertito commented on GitHub (Aug 17, 2019):
No worries!
That's a totally reasonable feature request; I can't promise I'll get to it quickly but I'll try :)
I'll leave this open to track it.
Please feel free to open other issues if you have any other questions or comments!