I want to download and parse a list of csv with yearly weather data with logstash.
"YEAR" would be my variable and I need to increase from 1998 to 2019.
I tried to use this simple conf file but not even works.
what do you mean by "not even works"? What does it do?
Anyway, AFAIK, the only way to pass variables to Logstash is through environment variables.
If you do not have a env variable YEAR specified, it should take the default one you passed (1998).
Obviously it won't find anything in your output section, so I'd expect it to write something in the /var/log/logstash/wheater-%{YEAR}.log literal path.
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.