# Exporting Bulk data to CSV

**URL:** https://discuss.elastic.co/t/exporting-bulk-data-to-csv/156190
**Category:** Elasticsearch
**Created:** [November 11, 2018, 9:37am UTC](https://discuss.elastic.co/t/exporting-bulk-data-to-csv/156190 "2018-11-11T09:37:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![surajsrinivasa](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@surajsrinivasa](https://discuss.elastic.co/u/surajsrinivasa)
#### Post date: [November 11, 2018, 9:37am UTC](https://discuss.elastic.co/t/exporting-bulk-data-to-csv/156190/1 "2018-11-11T09:37:09Z")

</div>

We are using Elasticsearch version 6.4.2. to save access logs for our website. The logs are very heavy in nature, and take up almost 3-4 GB of storage per day. Sometime these logs are required by our IR team to investigate Web based attacks, what is the best way to export bulk data like this into csv? I know there is a limit on xpack reporting with Kibana to 10 MB, I tried increasing it to 100 MB as well as increasing the http\_max\_content\_length to 200 mb but most of the times Elasticsearch would stop with a Java memory heap size error.  
We have not bought the commercial license for X-Pack.  
What is the best way to get these logs, which will be about 500mb - 1gb out of elasticsearch?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [November 11, 2018, 1:16pm UTC](https://discuss.elastic.co/t/exporting-bulk-data-to-csv/156190/2 "2018-11-11T13:16:21Z")

</div>

You can use logstash for this I think.

---

<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: [December 9, 2018, 1:16pm UTC](https://discuss.elastic.co/t/exporting-bulk-data-to-csv/156190/3 "2018-12-09T13:16:29Z")

</div>

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