"Overwritten" files & logstash


#1

Hi guys,

Got one question.
I would like to create bash scripts from my elastic server to harvest log files from remote directories. It would be probably very often, that one log file would be overwritten with the same file during the script automation.

What will logstash/sincedb do?
-filename <- remains the same
-filesize <- remains the same
-filecontent <-remains the same

only change would be to last modification time on the local server.

Will logstash see this file as "old" and ignore it or will in repharse it and make duplicate entries to elastic?

Thank you and have a nice day.
Mario


(Magnus B├Ąck) #2

In-place overwriting of the kind you're describing should be fine. I don't see why you'd get any duplicates.


#3

Thank you Magnus. I can confirm.


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.