I have this problem with metricbeat:
error.message HTTP error 403 in : 403 Forbidden
event.dataset elasticsearch.enrich
This is my metricbeat.yml
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["my.ip:9200", "my.ip:9200"]
# Optional protocol and basic auth credentials.
#protocol: "https"
username: "remote_monitoring_user"
password: "${remote.monitoring.user}"
setup.ilm.enabled: false
And elasticsearch-xpack.yml:
- module: elasticsearch
metricsets:
- ccr
- cluster_stats
- enrich
- index
- index_recovery
- index_summary
- ml_job
- node_stats
- shard
period: 10s
hosts: ["http://my.ip:9200"]
username: "remote_monitoring_user"
password: "${remote.monitoring.user}"
xpack.enabled: true
Elasticsearch version is 7.5.1
Metricbeat version is 7.5.2
Log entry:
2020-01-24T14:36:49.234+0100 INFO module/wrapper.go:252 Error fetching data for metricset elasticsearch.enrich: HTTP error 403 in : 403 Forbidden