Can a conf string be passed into logstash instead of a file location?

Can a string be passed into logstash that represents a conf file? I'd like to dynamically create a conf on demand. I know we can bin/logstash -f test.conf, but I'd like to know if we can pass in a string instead of referencing a file location. Thanks!

Something like:

bin/logstash -f "input { stdin { } } output { stdout { } }"

Instead of -f, use -e or --config.string to pass a string containing the configuration to logstash.

1 Like

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