Hi Harald, You can use rndc to rotate the dnstap log file. Maybe you can integrate this command into your logrotate configuration.
man rndc ... dnstap -roll count Close, rename and re-open the DNSTAP output file(s). ... Daniel On 11.08.17 19:03, Harald A. Irmer wrote: > Hi, > > I integrated dnstap into /var/named/log: log_dnstap > > > /etc/logrotate.d/bind: > > /var/named/log/log_* { > daily > rotate 10 > nomail > compress > delaycompress > shred > missingok > notifempty > create 0664 dns dns > su dns dns > dateext > dateyesterday > olddir OLD > createolddir 0664 dns dns > sharedscripts > postrotate > /etc/init.d/named reload > /dev/null > find /var/named/log/OLD -mtime +10 -exec rm -f {} \; > endscript > } > > Is it possible that dnstab "obeys" `named reload`? > > That would be nice > > > Yours > > Harald > > > > _______________________________________________ > dnstap mailing list > dnstap@lists.redbarn.org > http://lists.redbarn.org/mailman/listinfo/dnstap > _______________________________________________ dnstap mailing list dnstap@lists.redbarn.org http://lists.redbarn.org/mailman/listinfo/dnstap