File Input, just one file, with one line that is updated every 5 minutes

Hi, I need to read from logstash one file: number_of_connections.txt
this file is updated every 5 minutes with a new number, so no new lines are added.

can I do this with file input? if not is there another input that I can use?

Thanks!

You could use a file input in read mode and have the input delete the file every time it is read. Provided your filesystem does not keep re-using the same inode that might work.

1 Like

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