Graylog2 / collector-sidecar

Manage log collectors through Graylog
https://www.graylog.org/
Other
268 stars 56 forks source link

Sidecar Config Using Environment Variables #354

Open gruselglatz opened 5 years ago

gruselglatz commented 5 years ago

Problem description

Cant get Environment Variables to get working in Sidecar config.

Steps to reproduce the problem

fields.meta.hostname: ${COMPUTERNAME} gives me an compilation error fields.meta.hostname: $COMPUTERNAME gives me "$COMPUTERNAME" in the filed fields.meta.hostname: %COMPUTERNAME% failes to start

With a normal metricbeat config i can use the first line to get the result that i want.

Environment

happyyangyuan commented 4 years ago

Same question

happyyangyuan commented 4 years ago

solved by:

fields.app: open-portal # produces field name "filebeat_app"
fields.env: prod     # produces field name "filebeat_env"