Setting Env Variables in logstash configuration files

Hello All,

I would like to know how can I set up Env Variable in logstash pipleline.yml to read config files
from particular folder when logstash startup.

Directory structure:
C->Logstash->cfg->Different config files

image

Thanks

I'm not sure I understand the question about environment variables, but in pipelines.yml you can configure the path where the config files for the pipeline are.

Something like:

- pipeline.id: pipeline-name
  path.config: "/path/to/config/files/*.cfg"

Hello,

Here for below constant path I need env variable defined.Is this possible and how would config look like?
/path/to/config/files

Does below config is valid in pipelines.yml ?

- pipeline.id: mydatabasestate
  queue.type: persisted
  path.config: "${PIPELINES_CONFIG}/*.cfg"

Many Thanks

I don't think this is supported.

Did you test it?

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