To answer this question we need to understand why you want to do this. What's your end goal? Why can't you store the filename or filename pattern in the Logstash configuration file?
No, I cannot store the finame or the filename pattern. Since the directories.csv is a output file generated from another Logstash component.
And thus the path is subject to change accordingly.
So any idea on how to achieve this?????
You could generate the configuration file you need (either directly from your other Logstash component) or via an extra script that detects that the file you're currently generating has changed.
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.