Hi,
I've debugging an issue for some time now where metricbeat-7.12 doesn't seem to be able to create a new alias for an index template.
About the set up:
- Elasticsearch 7.12
- Kibana 7.12
- Metricbeat 7.12
- Security enabled (SSL + authentication)
ES and Kibana are behind a reverse proxy.
This is what I see in the logs (apologies if the following doesn't show as code, something in the content seems to make the rendering fail to convert that to code):
2021-03-26T11:56:24.155+0100 ERROR [publisher_pipeline_output] pipeline/output.go:154
Failed to connect to backoff(elasticsearch(https://<host>/elasticsearch)): Connection marked as failed because the onConnect callback failed: failed to create alias: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
404
</body></html>
2021-03-26T11:56:24.156+0100 INFO [publisher_pipeline_output] pipeline/output.go:145
Attempting to reconnect to backoff(elasticsearch(https://<host>/elasticsearch)) with 1 reconnect attempt(s)
I initially thought that this issue was due to the proxy (since I had some 405 before) but this doesn't seem to be the case. I went to kibana and run the same request and got the following response:
PUT <metricbeat-7.12.0-{now/d}-000001>
{"aliases":{"metricbeat-7.12.0":{"is_write_index":true}}}
{
"error" : "Incorrect HTTP method for uri [/%3Cmetricbeat-7.12.0-%7Bnow/d%7D-000001%3E?pretty=true] and method [PUT], allowed: [POST]",
"status" : 405
}
Is metricbeat using a endpoint from Elasticsearch that has been removed (or modified)?
Any guidance on how to that issue further would be very appreciated.
Thanks