Created
January 4, 2022 21:13
-
-
Save edmonds/dcbb82872b270eceba88f05ae0281e69 to your computer and use it in GitHub Desktop.
dnstap monitoring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# /etc/unbound/unbound.conf.d/dnstap.conf | |
# | |
dnstap: | |
dnstap-enable: yes | |
dnstap-socket-path: "/var/log/dnstap/.sock" | |
dnstap-send-identity: yes | |
dnstap-send-version: yes | |
dnstap-log-client-query-messages: yes | |
dnstap-log-client-response-messages: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# /etc/cron.daily/dnstap_rotate | |
# | |
@monthly root systemctl kill --kill-who=main --signal=SIGUSR1 fstrm_capture 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# /etc/systemd/system/fstrm_capture.service | |
# | |
[Unit] | |
Description=fstrm_capture server | |
Before=unbound.service | |
[Service] | |
Type=simple | |
User=unbound | |
Group=unbound | |
ExecStart=/usr/bin/fstrm_capture --type protobuf:dnstap.Dnstap --unix /var/log/dnstap/.sock --localtime -w /var/log/dnstap/dnstap.%%Y%%m%%d.%%H%%M.%%s | |
Restart=always | |
RestartSec=5 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment