X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=doc%2Fman1%2Fdjbdns-logparse.1;h=fc546e9935f9f739de17b39b798ddd73dd903269;hb=HEAD;hp=580f046c67304b7b150f190f4b21819f1d552b97;hpb=7509ae0ebb56d915ec7429bbba151694ecf61210;p=djbdns-logparse.git diff --git a/doc/man1/djbdns-logparse.1 b/doc/man1/djbdns-logparse.1 index 580f046..fc546e9 100644 --- a/doc/man1/djbdns-logparse.1 +++ b/doc/man1/djbdns-logparse.1 @@ -19,8 +19,8 @@ Each \fILOGFILE\fR should be a tinydns or dnscache log file; if none are given, the program will read from stdin. .SH DESCRIPTION .P -Both tinydns and dnscache (two daemons in the djbdns suite) keep logs -of their activity, but only in an undocumented machine-oriented +Tinydns and dnscache are two daemons in the djbdns suite. Both keep +logs of their activity, but only in an undocumented machine-oriented format. The goal of djbdns-logparse is to parse those logs and make them human-readable with a minimal amount of interference. .SH EXAMPLES @@ -83,7 +83,7 @@ Rob Mayoff's notes on the dnscache log file format The following transformations are common to both daemons' logs: .IP \(bu 2 The leading timestamps are piped through the -\fBtai64nlocal\fR program. +\fBtai64nlocal\fR program from DJB's daemontools. .IP \(bu IPv4 addresses are converted from hexadecimal strings to decimal dotted-quads; for example \(dq7f000001\(dq becomes \(dq127.0.0.1\(dq. @@ -124,6 +124,37 @@ request) is split off the end of the \(dqip:port:id\(dq triplet and is placed in parentheses with the word \(dqid\(dq, like \(dq(id 8675309)\(dq. +.P +The following transformations are specific to dnscache: +.IP \(bu 2 +In \(dqquery\(dq entries, the third component of the +clientip:clientport:id triplet is a decimal packet identifier chosen +and sent by the client. We separate it from the client ip:port, and +put it in parentheses, like \(dq(id 8675309)\(dq. +.IP \(bu +We prefix each decimal TTL with \(dqTTL=\(dq so that you know what +the magic number stands for. +.IP \(bu +All serial numbers are prefixed with a hash sign. This is the only +field that we do this to, so if you see a number with a \(dq#\(dq in +front of it, that's a serial number. +.IP \(bu +In a \(dqstats\(dq entry, the four decimal statistics are prefixed +with what they represent. Specifically, the prefixes are +\(dqcount=\(dq, \(dqmotion=\(dq, \(dqudp-active=\(dq, and +\(dqtcp-active=\(dq. You may want to read +.UR http://cr.yp.to/djbdns/cachesize.html +DJB's explanation of the \(dqmotion\(dq field +.UE +. +.IP \(bu +The hex data logged from a TXT query response is decoded to ASCII. +.IP \(bu +The decimal \(dqgluelessness\(dq field is prefixed by \(dqg=\(dq. +You may want to read +.UR http://cr.yp.to/djbdns/notes.html#gluelessness +DJB's explanation of gluelessness. +.UE .SH BUGS