Elastic 7.15.1
I have read through a lot of discussions on how to solve this issue but nothing is working.
I am working on an install process for the winlogbeat service.
The Service installs and starts with no issues showing.
But if you go the logs and review, I get the following error messages:
ERROR [publisher_pipeline_output] pipeline/output.go:154 Failed to connect to backoff(Elasticsearch(https://IP_ADDRESS:9200)): 401 Unauthorized: {"error":{"root_cause":[{"type":"security_exception","reason":"unable to authenticate user [winlogbeat-input] for REST request [/]","header":{"WWW-Authenticate":["Basic realm="security" charset="UTF-8"","Bearer realm="security"","ApiKey"]}}],"type":"security_exception","reason":"unable to authenticate user [winlogbeat-input] for REST request [/]","header":{"WWW-Authenticate":["Basic realm="security" charset="UTF-8"","Bearer realm="security"","ApiKey"]}},"status":401}
INFO [publisher_pipeline_output] pipeline/output.go:145 Attempting to reconnect to backoff(Elasticsearch(https://IP_ADDRESS:9200)) with 1 reconnect attempt(s)
INFO [publisher] pipeline/retry.go:219 retryer: send unwait signal to consumer
INFO [publisher] pipeline/retry.go:223 done
I also recreated the Keystore, using the following commands to see if would resolve the issue ;
winlogbeat keystore create -E keystore.path= C:\ProgramData\winlogbeat
winlogbeat.exe --path.data "C:\ProgramData\winlogbeat" keystore add DFWES_PWD.
If I remove the Keystore Password within the winlogbeat.yml file, it works just fine and connects.
The .yml file shows this for the User SetUp:
username: "winlogbeat-input"
password: "${DFWES_PWD}"
Does anyone have any hints, or ideas on how to do this using the KeyStore ?
HINT on the issue;
I also made sure that the Keystore is in the ProgramData folder. I did a copy command on the Keystore file. When I "MOVE" the Keystore ( from Program Files to ProgramData ) the Service is not finding the file. That means the service is looking at Program Files for the Keystore.
How do I change this to look at "ProgramData",
I have tried the folowing command but it is not working
winlogbeat.exe -e keystore.path = "C:\ProgramData\winlogbeat\winlogbeat.keystore"
I also recreated the Keystore to make sure it was in ProgramData\winlogbeat
winlogbeat keystore create -E keystore.path= C:\ProgramData\winlogbeat
and added the password for the Key and verified that it was there.