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!
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.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.