When I restart the logstash service, the old documents are coming out.
I tried to stopping the filebeat service where the logs are coming from and I deleted the old documents. But when I restart the logstash service the logs I deleted came back.
Are you using FB->LS? If do, logs read on FB side. There is the param registry: filebeat.registry.path: ${path.data}/registry in filebeat.yml which keeps tracks about files which has been read.
If files were deleted from a disk, no chance to get back in LS.
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.