Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidecar Config Using Environment Variables #354

Open
gruselglatz opened this issue Mar 18, 2019 · 2 comments
Open

Sidecar Config Using Environment Variables #354

gruselglatz opened this issue Mar 18, 2019 · 2 comments

Comments

@gruselglatz
Copy link

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

  • Sidecar Version: 1.0.0-1 on Windows 10
  • Graylog Version: Graylog 3.0.0+db6cf59 on graylog (Oracle Corporation 1.8.0_191 on Linux 4.4.0-142-generic)
@happyyangyuan
Copy link

Same question

@happyyangyuan
Copy link

happyyangyuan commented Oct 8, 2019

solved by:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants