Using Keystores - not working (v6.6.0)

Hello,
I'm trying to use a keystore value in my beat configuration and I can't seem to get it working...
For example - I'm currently trying it with heartbeat.

THIS WORKS -
output.elasticsearch:
password: "clear_text_pw"

THIS DOES NOT WORK -
output.elasticsearch:
password: "${ES_PWD}"

When starting heartbeat the log gives me:
Exiting: error initializing publisher: missing field accessing 'output.elasticsearch.password' (source:'/etc/heartbeat/heartbeat.yml')

I definitely have the value set in the keystore -

/usr/share/heartbeat/bin/heartbeat keystore list

KB_PWD
ES_PWD

Any ideas on where I'm going wrong?

I think I've figured this out.

By default, the keystore is being created in path.home. My understanding is that by default it should be created in path.config?
If I copy the keystore to my path.config all works fine.

However, this means each time I add a value to the keystore I need to remember to copy the keystore to path.config afterwards.

Is this a bug or have I misunderstood something?

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