# Export to CSV fails with 'index\_closed\_exception'

**URL:** <https://discuss.elastic.co/t/export-to-csv-fails-with-index-closed-exception/130840>\
**Category:** Kibana\
**Created:** [May 7, 2018, 1:33pm UTC](https://discuss.elastic.co/t/export-to-csv-fails-with-index-closed-exception/130840 "2018-05-07T13:33:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgr78](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rgr78/32/30890_2.png) [@rgr78](https://discuss.elastic.co/u/rgr78)\
**Post date:** [May 7, 2018, 1:33pm UTC](https://discuss.elastic.co/t/export-to-csv-fails-with-index-closed-exception/130840/1 "2018-05-07T13:33:27Z")

</div>

Hello.

I am unable to export a CSV from an index pattern, Kibana reports the exception 'index\_closed\_exception'. Some of the indices are indeed closed. Everything else in Kibana works fine with this index pattern.

I believe this is a bug on the CSV export routine, it should ignore closed indices.

Regards,  
Ricardo Ramalho

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [May 7, 2018, 2:26pm UTC](https://discuss.elastic.co/t/export-to-csv-fails-with-index-closed-exception/130840/2 "2018-05-07T14:26:45Z")

</div>

Hey @rgr78 it appears that we aren't passing the `ignoreUnavailable` option to the search request when performing the CSV export, would you mind opening a bug at [https://github.com/elastic/kibana/issues/new](https://github.com/elastic/kibana/issues/new) with what you're experiencing and we'll get it resolved?

---

<div class="post-metadata">

**Author:** ![rgr78](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rgr78/32/30890_2.png) [@rgr78](https://discuss.elastic.co/u/rgr78)\
**Post date:** [May 8, 2018, 10:56am UTC](https://discuss.elastic.co/t/export-to-csv-fails-with-index-closed-exception/130840/3 "2018-05-08T10:56:59Z")

</div>

Sure, here it is: [https://github.com/elastic/kibana/issues/18901](https://github.com/elastic/kibana/issues/18901)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 5, 2018, 10:57am UTC](https://discuss.elastic.co/t/export-to-csv-fails-with-index-closed-exception/130840/4 "2018-06-05T10:57:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
