From 7509ae0ebb56d915ec7429bbba151694ecf61210 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 20 Sep 2022 19:52:06 -0400 Subject: [PATCH] doc/man1/djbdns-logparse.1: add tinydns-by-filename example. --- doc/man1/djbdns-logparse.1 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/doc/man1/djbdns-logparse.1 b/doc/man1/djbdns-logparse.1 index 5519032..580f046 100644 --- a/doc/man1/djbdns-logparse.1 +++ b/doc/man1/djbdns-logparse.1 @@ -25,7 +25,7 @@ format. The goal of djbdns-logparse is to parse those logs and make them human-readable with a minimal amount of interference. .SH EXAMPLES .P -Reading the current dnscache log from stdin: +Read the current dnscache log from stdin: .EX .I $ djbdns-logparse < /var/dnscache/log/main/current @@ -42,6 +42,23 @@ Reading the current dnscache log from stdin: 2022-09-19 10:47:37.931297500 stats count=2 motion=131 udp-active=1 tcp-active=0 2022-09-19 10:47:37.931332500 sent #2 102 .EE + +Read all archived tinydns logs by filename: + +.EX +.I $ djbdns-logparse /var/tinydns/log/main/*.s | head -n 10 +2022-09-14 19:26:41.300364500 sent response to 192.168.0.46:53969 (id 35830): aaaa ipv6.example.com +2022-09-14 19:26:41.487751500 sent response to 192.168.1.71:20039 (id 1659): a example.net +2022-09-14 19:26:41.508978500 sent response to 192.168.1.71:48252 (id 21909): aaaa example.net +2022-09-14 19:26:41.627669500 sent response to 192.168.0.139:30527 (id 43254): a dns3.example.com +2022-09-14 19:26:41.668888500 sent response to 192.168.0.139:64880 (id 33302): a dns.example.com +2022-09-14 19:26:41.882769500 sent response to 10.0.1.194:51020 (id 5411): aaaa example.org +2022-09-14 19:26:42.135118500 dropped query (no authority) from 10.10.10.48:53220 (id 41583): a www.invalid +2022-09-14 19:26:42.254312500 sent response to 172.17.29.1:3079 (id 54381): aaaa mail2.example.com +2022-09-14 19:26:42.268802500 sent response to 172.17.30.135:38498 (id 57389): a dns2.example.com +2022-09-14 19:26:42.686389500 dropped query (no authority) from 172.20.0.57:20491 (id 43936): any localhost +.EE + .SH OPTIONS .TP -- 2.44.2