When I use ignore_inactive: since_first_start: Reads the updated file lines from startup (does not read the whole file), however, when Filebeat is restarted, it reads the whole file, duplicating the lines.
When I use ignore_inactive: since_last_start: Reads the lines of the file updated since startup (does not read the whole file), however, when Filebeat is restarted or stopped for a while, it reads the lines again since startup, losing lines.
when Filebeat is restarted, it reads the whole file, duplicating the lines.
when Filebeat is restarted or stopped for a while, it reads the lines again since startup, losing lines.
It kind of sounds like you don't keep the state between restarts? What's in your registry file and can that be written to and read by Filebeat (and persists between restarts)? How Filebeat works | Filebeat Reference [8.11] | Elastic for how the state is supposed to work.
I kind of doubt that this is generally broken (otherwise all hell would have broken lose) but maybe there's something in your environment that causes an issue there?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.