I'm reading the DNS debug log file from a Windows DNS server.
I can't install any software on the DC, so I resorted to sharing the directory with the logs, mount it on my Linux box, and read/parse it with logstash and file input.
It works until Windows "rotates" the log file. It seems to do so by restarting to write from the beginning, I assume after a truncate type operation. Logstash sits stuck and does not get the new data. If I restart Logstash it restarts ingesting correctly. My input is like:
input { file { path => "/mnt/dns/*log" start_position => "beginning" discover_interval => 120 stat_interval => 60 type => "dnslog" } }
any idea if I can tweak some parameter to catch this kind of "rotation"?
Thanks