-
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 CSV export fails with 'index_closed_exception' #18901
Comments
Sounds like the fix for this will be relatively simple, but it deserves tests to go along with it, and that will take some extra time. |
I'm interested in taking this on. The fix suggested by @kobelb in Discuss was to use the |
Hi @rgr78 on further inspection, I was not able to reproduce the issue in our I'll check if something changed in Elasticsearch to make this more lenient. When I try a raw multi-index search where the pattern includes a closed index, I am not seeing an exception happen. |
After testing this on
Given the inactivity on this ticket, and both @tsullivan and I being unable to reproduce on multiple versions, I'm going to close this issue. Please feel free to re-open if either of us have missed something, or if this is still a problem. We'll likely need more details as it's apparent we've missed something in either case. |
I was able to reproduce this on 6.6.1 and 7.3.0. I believe it has to do with an aliasing & Security bug in Elasticsearch: #20920 Steps to reproduce (security enabled):
|
There seems to be a category of bugs with CSV generation when the data is visible in Discover but breaks in CSV. As for more in that category:
@elastic/kibana-app we need to team up on how to unite the code. Are there resources that exists in re-usable server-side code that CSV generation can share? So far, to build these features we've had to reverse-engineer Discover code. Fixing the bugs as they come in will feel like we're fixing bugs that Discover team has fixed before. |
getting this error
when trying to generate CSV report, Any update on when a fix might be available? |
@elastic/kibana-app how do you handle closed indices in Discover? |
I've read through this several times and I'm not sure if I'm understanding everything. Also full disclosure I did not set up our ELK stack - I'm just a user thru Kibana. Is this an Kibana bug? Is there something we did in the setup of our indices that is causing this problem that we could possibly change that would address this problem? Is there any more information I can provide that will help with the resolution of this issue? Thanks - Mike |
Hi, this is a Kibana bug where CSV Export is not properly ignoring closed indices when they are involved in the pattern of indices to search against. I need to work with @elastic/kibana-app to find an appropriate change to make in the code. The workaround isn't nice, but it would mean not having any closed indices for the saved search's index pattern. |
According to elastic/elasticsearch#15730 using the (as far as I can tell undocumented) |
Pinging @elastic/kibana-app-arch (Team:AppArch) |
Pinging @elastic/kibana-reporting-services (Team:Reporting Services) |
If this is a matter of sending |
Relevant PR for consolidating the Reporting CSV generation code: #67027 I'm not sure if the data plugin is ready to be used on the server for replacing Reporting's CSV generation logic. Right now Reporting has to duplicate a lot of functionality built-into Discover, and we have had to reverse engineer Discover's features to build them into the server-side for export. The steps we take to build the query DSL, inject filters, add the required request parameters, etc - is all outside of the domain of Reporting Services. These things are integration concerns of Discover export. We need to define a saner payload of parameters for exporting CSV. The payload to export CSV should just be: the ID of the saved search, client time zone for formatting, and date filter parameters. Currently, the payload of parameters is a lot of blobs of JSON that Reporting has to figure out what to do with. |
Pinging @elastic/kibana-app-services (Team:AppServices) |
Closed in #67027 |
Kibana version: 6.2.2
Elasticsearch version: 6.2.2
Server OS version: RHEL 7
Browser version: Google Chome Version 66.0.3359.139 (Official Build) (64-bit)
Browser OS version: Windows 10 1609
Original install method (e.g. download page, yum, from source, etc.): yum
Description of the problem including expected versus actual behavior:
Using Kibana, when exporting a CSV from an index pattern which includes closed indices, Kibana reports the exception 'index_closed_exception', and fails.
It should ignore the closed indices, and use the open ones.
Steps to reproduce:
Errors in browser console (if relevant): Not relevant
Provide logs and/or server output (if relevant): index_closed_exception
Discussion thread with more details: https://discuss.elastic.co/t/export-to-csv-fails-with-index-closed-exception/130840
The text was updated successfully, but these errors were encountered: