Closed dobbytheferret closed 4 years ago
"statusCode":403,"error":"Forbidden"
means you didn't provide credentials for Winlogbeat to communicate with Elasticsearch.
From the docs
output.elasticsearch:
hosts: ['<ELASTICSEARCH_URL>']
username: kibana
password: <YOUR_PASSWORD>
If i write the wrong password and username i get "[indices:admin/aliases/get] is unauthorized for user [kibana]"},"status":403}"
If i use the elastic username and password that was made during password initializing it gives me the error "{"statusCode":403,"error":"Forbidden","message":"Unable to bulk_create dashboard,search,visualization"}"
So theres a different error..
I am 100% sure the password is right.
Even tried to setup a new user with ALL roles added to it. Gets the same
error loading C:\Program Files\Winlogbeat\kibana\7\dashboard\8223bed0-b9e9-11e9-b6a2-c9b4015c4baf.json: returned 403 to import file:
I have even tried to setup the dashboards with "PS C:\Program Files\Winlogbeat> .\winlogbeat.exe setup -e
-E output.logstash.enabled=false -E output.elasticsearch.hosts=['ip:9200'] -E output.elasticsearch.username=elastic -E output.elasticsearch.password=pass -E setup.kibana.host=ip:5601"
The elastic
user essentially has "root" permissions, so if it doesn't work I'm not sure what else you can do. This is something I would ask in the Elastic forums because it doesn't seem specific to Docker.
Closing because it seems we have gone a full circle, feel free to reopen if you're still affected by this and believe the problem could be specific to ELK on Compose.
Problem description
When trying to setup dashboards for winlogbeat i get "Failed to import dashboard"
Extra information
Stack configuration
Docker setup