[dnsdist] High-fidelity timestamp in FrameStream logging

Casey Deccio casey at deccio.net
Fri Oct 11 15:31:58 UTC 2019


Hi all,

I am using the following to log queries:

logger = newFrameStreamTcpLogger("127.0.0.1:4343")
addAction(AllRule(), DnstapLogAction("foo", logger))

Then I use this command line to read and produce yaml output:

fstrm_capture -t protobuf:dnstap.Dnstap -a 127.0.0.1 -p 4343 -w - | dnstap-read -y -p /dev/stdin

This seems to be working, for the most part.  However, I'm getting only second level- granularity in my messages, e.g.:

query_time: !!timestamp 2019-10-11T15:29:00Z

I would really like to see at least milliseconds.

Any thoughts?

Thanks,
Casey


More information about the dnsdist mailing list