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

Error loading config when keystore secret or environment variables are not valid JSON #13213

Closed
adriansr opened this issue Aug 9, 2019 · 2 comments
Labels
bug libbeat needs_team Indicates that the issue/PR needs a Team:* label Stalled

Comments

@adriansr
Copy link
Contributor

adriansr commented Aug 9, 2019

Due to elastic/go-ucfg#132, Beats will fail to parse the configuration when the value of a variable from the keystore or the environment starts with [, {, " and '.

With:

output.elasticsearch:
  username: "${MYUSER}"

the following fails:

$ MYUSER='"hello' ./filebeat run -e
Exiting: error initializing publisher: Missing " to close string  when parsing '"hello' accessing 'output.elasticsearch.username' (source:'filebeat.yml')
$ MYUSER='{user}' ./filebeat run -e
Exiting: error initializing publisher: expected ':' when parsing '{user}' accessing 'output.elasticsearch.username' (source:'filebeat.yml')
@botelastic
Copy link

botelastic bot commented Jul 9, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added Stalled needs_team Indicates that the issue/PR needs a Team:* label labels Jul 9, 2020
@botelastic
Copy link

botelastic bot commented Jul 9, 2020

This issue doesn't have a Team:<team> label.

@botelastic botelastic bot closed this as completed Aug 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug libbeat needs_team Indicates that the issue/PR needs a Team:* label Stalled
Projects
None yet
Development

No branches or pull requests

1 participant