Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch: broken cross-cluster search #79745

Closed
GiedriusS opened this issue Dec 20, 2023 · 7 comments · Fixed by #79746
Closed

Elasticsearch: broken cross-cluster search #79745

GiedriusS opened this issue Dec 20, 2023 · 7 comments · Fixed by #79746

Comments

@GiedriusS
Copy link
Contributor

What happened?

I added a new Elasticsearch data source with index name like foo,othernode:foo. I clicked "Save & Test". This is a completely valid Elasticsearch syntax in the remote clusters feature: https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-cross-cluster-search.html.

What did you expect to happen?

Everything to work.

Did this work before?

Yes, it broke somewhere between 9.5.3 and 10.2.2.

How do we reproduce it?

  1. Go to data source settings
  2. Add new elasticsearch data source
  3. Ensure that the index name field contains a colon character
  4. Click "Save & Test"
  5. See a call to _mappings that fails

Is the bug inside a dashboard panel?

No response

Environment (with versions)?

Grafana: 10.2.2

Grafana platform?

A package manager (APT, YUM, BREW, etc.)

Datasource(s)?

Elasticsearch

@evan-chaney
Copy link

Just upgraded 9.5.1 -> 10.2.3 and was hit by this. @GiedriusS thank you for adding a test case in your PR to hopefully avoid this in the future.

@tonypowa
Copy link
Contributor

tagging both squads for review (unsure who owns this)
@grafana/observability-logs @grafana/plugins-platform-backend

@matyax
Copy link
Contributor

matyax commented Jan 22, 2024

Thanks @tonypowa, we (logs) do.

@ivanahuckova
Copy link
Member

ivanahuckova commented Jan 23, 2024

@GiedriusS could you please share the error with which the call to _mappings fail? @svennergr created a fix to _mappings the other day #80970 which might be relevant/fix the issue.

Edit: Sorry I just noticed your PR and pinged relevant team to review.

@ivanahuckova
Copy link
Member

@GiedriusS Also in the meantime, if you want to temporarily fix the issue for you, you can set enableElasticsearchBackendQuerying feature toggle to false which disables running queries trough Elasticsearch's plugin backend (which is causing the issue). However, we plan to remove this feature toggle, so it is a short term fix. So thank you for reporting the issue and creating a PR to fix it

@ivanahuckova ivanahuckova self-assigned this Jan 23, 2024
@ivanahuckova
Copy link
Member

I will keep this open until we fix the issue also in ES as it also uses the same url.Parse() which will throw error.

@ivanahuckova
Copy link
Member

Fixed by #82327. Thanks again for bringing this to our attention and being proactive and helping with fix. Really appreciated. 🧡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants