Hi Guys
Can you help me
I have a problem with reading files from logstash.
After restarting logstash, it rereads the files again and sends events to Elastic.
This folder is mounted from another server /opt/Logstore/TMP/*.gz
./logstash --version
Using bundled JDK: /usr/share/logstash/jdk
logstash 7.10.0
There used to be a bug where sincedb_clean_after was actually a number of seconds, not days as documented. However, that was fixed a while back.
I suggest you look at the contents of /etc/logstash/conf.d/filereader/since_k.db and see if it contains the entries you expect after you shut logstash down.
Note that entries are not persisted to disk immediately. If you create /opt/Logstore/TMP/1.gz there will not be an entry on disk. If you then create /opt/Logstore/TMP/2.gz an entry will appear on disk for /opt/Logstore/TMP/1.gz etc. Do not worry about the sincedb on disk while logstash is running, just check it after logstash has stopped.
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.