Read path from another config file in Logstash configuration file

Hi

I have a requirement that ,in input section i have to read file path location from another config file ,so that i can change the file location dynamically from the config file instead of going into logstash config file and changing it every time.

Since i am new to EL i don't have any idea of achieving it , please help me

Sorry, that's not supported. You'll have to generate your configuration file or pass the input file path via an environment variable.

Ok, Please tell me How can pass input file path via an environment variable

https://www.elastic.co/guide/en/logstash/current/environment-variables.html

It helped me,Thank you

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.