# Export Kibana aggregation results daily

**URL:** <https://discuss.elastic.co/t/export-kibana-aggregation-results-daily/87024>\
**Category:** Kibana\
**Created:** [May 24, 2017, 6:20pm UTC](https://discuss.elastic.co/t/export-kibana-aggregation-results-daily/87024 "2017-05-24T18:20:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishna\_chaitanya](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@krishna\_chaitanya](https://discuss.elastic.co/u/krishna_chaitanya)\
**Post date:** [May 24, 2017, 6:20pm UTC](https://discuss.elastic.co/t/export-kibana-aggregation-results-daily/87024/1 "2017-05-24T18:20:53Z")

</div>

I can see there is an option to export the aggregation results from Kibana into CSV easily.  
I have use case where I have to export the data daily and feed to another process.

Can Kibana automatically perform this export daily and save into a file or onto Elasticsearch indices?  
If not, can elasticsearch export aggregation results into CSV?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 25, 2017, 9:29am UTC](https://discuss.elastic.co/t/export-kibana-aggregation-results-daily/87024/2 "2017-05-25T09:29:12Z")

</div>

> [@krishna\_chaitanya](#):
>
> Can Kibana automatically perform this export daily and save into a file or onto Elasticsearch indices?

KB cannot, but Alerting in X-Pack can.

> [@krishna\_chaitanya](#):
>
> If not, can elasticsearch export aggregation results into CSV?

Nope. See above.

---

<div class="post-metadata">

**Author:** ![krishna\_chaitanya](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@krishna\_chaitanya](https://discuss.elastic.co/u/krishna_chaitanya)\
**Post date:** [May 25, 2017, 2:17pm UTC](https://discuss.elastic.co/t/export-kibana-aggregation-results-daily/87024/3 "2017-05-25T14:17:38Z")

</div>

Thanks for the reply @warkolm

What kind of **Action** does the Watcher needs to send the results into CSV?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 25, 2017, 9:38pm UTC](https://discuss.elastic.co/t/export-kibana-aggregation-results-daily/87024/4 "2017-05-25T21:38:19Z")

</div>

You'd need to send it to an index and extract it using Logstash or something.

---

<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 22, 2017, 9:38pm UTC](https://discuss.elastic.co/t/export-kibana-aggregation-results-daily/87024/5 "2017-06-22T21:38:52Z")

</div>

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