I am working on an automated deployment of filebeat, and one of the steps is to enroll the beat.
As per the documentation, to have this process scripted, I need to use 'Username and password-based enrollment', where the chosen method is env:VAR.
I am on CentOS 7, and these are the steps I take:
- export beats_pass=some_password
- sudo filebeat enroll KIBANA_URL --username USER --password env:beats_pass
The result is:
"environment variable beats_pass does not exist"
Doing export -p confirms the environment variable is registered.
What am I doing wrong?
