How logstash come to know about new entries in log file


(shahid G) #1

I am thinking to use logstash, but I have a question that how log stash come to know about the latest entries in log file ?


(Magnus Bäck) #2

The file's modification time is checked (by default every second).


(shahid G) #3

ok , but what about content of file ? @magnusbaeck please can u explain the behavior of logstash with respect to log files etc ?


(Magnus Bäck) #4

If the file's modification time has changed Logstash will attempt to read from it. It reads until it hits the end of the file.

Is there any particular reason your asking these questions? We might be able to save some time if we address the root issue right away.


(system) #5

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