is possible to use a enviroment variable in the config for the user
for example
// cloud.auth: '{metrics_uname}:{MW_PWD}'
thanks i sew that before declared my variable in /etc/environment
my config is at follows
cloud.auth: '{metrics_uname}:{MW_PWD}'
"metrics_uname" being a variable daclared in /etc/environment and MW_PWD a key store variable
but i receive the following error
Oct 31 09:13:07 logstash metricbeat[13830]: 2019-10-31T09:13:07.261-0500 ERROR instance/beat.go:878 Exiting: missing field accessing 'username' (source:'/etc/metricbeat/metricbeat.yml') Oct 31 09:13:07 logstash metricbeat[13830]: Exiting: missing field accessing 'username' (source:'/etc/metricbeat/metricbeat.yml')
Oct 31 09:13:07 logstash systemd[1]: metricbeat.service: Main process exited, code=exited, status=1/FAILURE
Oct 31 09:13:07 logstash systemd[1]: metricbeat.service: Failed with result 'exit-code'.
Oct 31 09:13:07 logstash systemd[1]: metricbeat.service: Service hold-off time over, scheduling restart.
Oct 31 09:13:07 logstash systemd[1]: metricbeat.service: Scheduled restart job, restart counter is at 5.
Oct 31 09:13:07 logstash systemd[1]: Stopped Metricbeat is a lightweight shipper for metrics..
Oct 31 09:13:07 logstash systemd[1]: metricbeat.service: Start request repeated too quickly.
Oct 31 09:13:07 logstash systemd[1]: metricbeat.service: Failed with result 'exit-code'.
Oct 31 09:13:07 logstash systemd[1]: Failed to start Metricbeat is a lightweight shipper for metrics..
$
is missing from your configuration. cloud.auth: '${metrics_uname}
is the correct config.
What is MW_PWD
? Is this also an env variable?
sorry was a mistake in the post in the config i have it with $
and it's not working MW_PWD
is a metricbeat keystore key value pair
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.