Logstash read configuration values from properties file

Hello Team,

Could you please help me understand is there an option to keep configuration variables outside of pipeline.
for example if i have 4 pipeline with elasticsearch as input and output for this most of the configuration would be same and making changes to this would also be very easy . so can i keep few variables in file like hosts , keystore etc in a config file and read it from there.

Thanks for your help and support.

Thank you,

You can reference environment variables in the configuration (but not in conditionals). logstash also supports the use of a keystore for passwords and keys, which are hopefully environment specific.

1 Like

Thank you very much Badger, it worked for me. could you please suggest what is the best way to maintain environment variables.

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