-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Kibana Discovery fails with "closed" when searching in an Index pattern that contains a closed index #111699
Comments
Anyone knows if this is a bug or an intended beheviour? In case this is intended is there a workaround? |
Hello, The workaround for this would be to freeze the index instead of closing it. Backstory: I would see an enhancement request to only warn in case of hitting a closed index instead of direct failure. if you want to add it, be my guest, if you would like me to add it, let me know and I'll do it. |
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
My use case is the following: I have a lots of indices for log collection, I keep them for two months before deleting them and storing the data as a snapshot on a backup space Since my users needs to query only the last day of data 99% of the time, I was closing indices older than 1 week so it didn't waste heap space and resources. I think i could freeze those and gain back some resources. One thing that's not clear to me about frozen indices is the following: |
Please ignore the last comment, I just read the frozen indices are deprecated on elasticsearch 7.14. |
I think this is a totally valid use-case and I see why we would want to continue searching over index patterns even ifyou close an index in them. Because at that point they should simply be ignored. I was unfortunately unable to reproduce the failure as you described it. It seem to actually work fine for me. I tried it with the following commands in the dev tools:
I created in between (or also after, tried different combinations) an index pattern for @ManofWax @marius-dr can either of you provide me with some more details on how to reproduce it? |
Ok I understand better the problem, it seems to be related to index aliases: this is how to reproduce:
Now create a Kibana index-pattern for for
[EDIT] |
Thanks for those steps to reproduce. This indeed looks like a bug to me. I've opened an issue in Elasticsearch for this: elastic/elasticsearch#77612 I will close this one here, since to my knowledge there's nothing we could do to workaround that in Kibana. |
Kibana version:
7.14.1
Elasticsearch version:
7.14.1
Server OS version:
Ubuntu 20.04
Browser version:
Chrome 93
Browser OS version:
Ubuntu 20.04
Original install method (e.g. download page, yum, from source, etc.):
Official Docker images
Describe the bug:
When I search an index pattern that contains at least one closed index, even if the index does not contains data I'm searching for, the search fails because it looks like that Kibana is trying to do a
fields
search on every index.I also read through the Kibana docs to search a config setting that let me do this but I couldn't find anything relevant
Steps to reproduce:
foobar-2021-09-09, foobar-2021-09-08
and the Index patternfoobar-*
foobar-2021-09-08
foobar-*
Expected behavior:
Kibana should query only the open indices, I'm pretty sure that Kibana 6.x doesn't have this problem.
The text was updated successfully, but these errors were encountered: