When trying to connect to elasticsearch 8.x from grafana 10.4.2 it works with indexes that do not have patterns.. For example
index_1
= success
But
index_1.2024.05.11
fails , even when I select “Pattern Daily”
275 logger=tsdb.elasticsearch endpoint=callResource pluginId=elasticsearch dsName=elasticsearch dsUID=edlby9t5tghz4b uname=admin t=2024-05-11T03:07:42.323974477Z level=info msg="Response received from Elasticsearch" statusCode=200 status=ok duration=1.485538ms stage=databaseRequest contentLength=330 resourcePath=
276 logger=tsdb.elasticsearch endpoint=callResource pluginId=elasticsearch dsName=elasticsearch dsUID=edlby9t5tghz4b uname=admin t=2024-05-11T03:07:42.332479818Z level=error msg="Error received from Elasticsearch" error ="Get "http://192.168.86.77:9200/c12amnn65/11/2024_0tamti0tic0_5/11/2024ong-/_mapping": 400 Bad Request" status=error duration=770.707µs stage=databaseRequest resourcePath=c12amnn65/11/2024_0tamti0tic0_5/11/2024ong-/_mapping statusSource=downstream
277 logger=context userId=1 orgId=1 uname=admin t=2024-05-11T03:07:42.332701972Z level=error msg="Internal server error" error="[plugin.downstreamError] client: failed to call resources: Get "http://192.168.86.77:9200/ c12amnn65/11/2024_0tamti0tic0_5/11/2024ong-/_mapping": 400 Bad Request" remote_addr=192.168.85.152 traceID=
278 logger=context userId=1 orgId=1 uname=admin t=2024-05-11T03:07:42.332775139Z level=error msg="Request Completed" method=GET path=/api/datasources/uid/edlby9t5tghz4b/resources/c12amnn65/11/2024_0tamti0tic0_5/11/2024ong-/_mapping status=500 remote_addr=192.168.85.152 time_ms=1 duration=1.867113ms size=116 referer=http://192.168.86.158:3000/connections/datasources/edit/edlby9t5tghz4b handler=/api/datasources/uid/:uid/resources/*status_source=downstream
279 logger=tsdb.elasticsearch endpoint=callResource pluginId=elasticsearch dsName=elasticsearch dsUID=edlby9t5tghz4b uname=admin t=2024-05-11T03:07:42.33438514Z level=error msg="Error received from Elasticsearch" error= "Get "http://192.168.86.77:9200/c12amnn55/10/2024_0tamti0tic0_5/10/2024ong-/_mapping": 400 Bad Request" status=error duration=948.075µs stage=databaseRequest resourcePath=c12amnn55/10/2024_0tamti0tic0_5/10/2024ong-/_mapping statusSource=downstream
280 logger=context userId=1 orgId=1 uname=admin t=2024-05-11T03:07:42.334445881Z level=error msg="Internal server error" error="[plugin.downstreamError] client: failed to call resources: Get "http://192.168.86.77:9200/ c12amnn55/10/2024_0tamti0tic0_5/10/2024ong-/_mapping": 400 Bad Request" remote_addr=192.168.85.152 traceID=
281 logger=context userId=1 orgId=1 uname=admin t=2024-05-11T03:07:42.33452545Z level=error msg="Request Completed" method=GET path=/api/datasources/uid/edlby9t5tghz4b/resources/c12amnn55/10/2024_0tamti0tic0_5/10/2024ong-/_mapping status=500 remote_addr=192.168.85.152 time_ms=2 duration=2.076942ms size=116 referer=http://192.168.86.158:3000/connections/datasources/edit/edlby9t5tghz4b handler=/api/datasources/uid/:uid/resources/* status_source=downstream
From what I can tell its a malformed request.
Get "http://192.168.86.77:9200/c12amnn65/11/2024_0tamti0tic0_5/11/2024ong-/_mapping": 400 Bad Request"
If I select an index that has no pattern then it works fine. Do I have to add some type of regex?
Side note. It works fine with datastreams im guessing because those have no patterns.