I have a use case where a file is replaced with additional details periodically. I was using filebeat to do that but I see filebeat maintains an offset and considers it as same file and starts reading from the line where it left. causing the data loss.
Is there a way that I can always force filebeat to read the file from beginning whenever it is modified/replaced?
Other option that I found was using file input plugin that offers this option with setting since_db as /dev/null and start_position as "beginning". However my file is remote so can not use that plugin.