Commit 5fb0811d authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman

doc: add structured logging into operation

parent 69a873e9
......@@ -411,6 +411,19 @@ operator must confirm it manually with ``knotc zone-ksk-submitted``::
2017-10-24T15:41:33 info: [] DNSSEC, successfully signed
2017-10-24T15:41:33 info: [] DNSSEC, next signing at 2017-10-24T15:41:47
.. TIP::
If systemd is available, the KSK submission event is logged into journald
in a structured way. The intended use case is to trigger a user-created script.
journalctl -f -t knotd -o json | python3 -c '
import json, sys
for line in sys.stdin:
k = json.loads(line);
print("%s, zone=%s, keytag=%s" % (k["__REALTIME_TIMESTAMP"], k["ZONE"], k["KEY_SUBMISSION"]))
Algorithm rollover example
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment