# CSV EXPORT BUG

**URL:** <https://discuss.elastic.co/t/csv-export-bug/201414>\
**Category:** Kibana\
**Created:** [September 27, 2019, 2:06pm UTC](https://discuss.elastic.co/t/csv-export-bug/201414 "2019-09-27T14:06:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_searchng](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@mr\_searchng](https://discuss.elastic.co/u/mr_searchng)\
**Post date:** [September 27, 2019, 2:06pm UTC](https://discuss.elastic.co/t/csv-export-bug/201414/1 "2019-09-27T14:06:08Z")

</div>

kibana exports csv inside but writes in one column.  
I want separate columns in excel format as I described in the figure.  
I am developing in kibana development environment.  
The page developed is on the following page.

csv export result:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/a/8ade189432f9222eb479609015651c3a082d1738.png)

the shape i want :  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/f/bff5491879e7e5f7f9ac3e33a8d0ae29bdd5350f.png)

the page I work ;  
agg\_table.js

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [September 27, 2019, 2:15pm UTC](https://discuss.elastic.co/t/csv-export-bug/201414/2 "2019-09-27T14:15:52Z")

</div>

The CSV file is properly formatted. Below is the export output from a table visualization. Each row has 2 columns. The first is the key and the second is the count. The columns are separated by `,`

```auto
"machine.os.keyword: Descending",Count
"win 7",332
osx,331
"win xp",325
ios,320
"win 8",307

```

Then, when the file is opened in Numbers the columns are displayed as expected  
 ![45%20AM](https://us1.discourse-cdn.com/elastic/original/3X/5/e/5eae46116fe5c39ebf00b292e79fce58cc8f9fc5.png)

The problem may be with how the CSV is imported into your spreadsheet application. Is your spreadsheet application using `,` to split columns?

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [September 27, 2019, 2:42pm UTC](https://discuss.elastic.co/t/csv-export-bug/201414/3 "2019-09-27T14:42:08Z")

</div>

@mr_searchng Looks like this is the same question you asked in post [Excel export csv](https://discuss.elastic.co/t/excel-export-csv/200386). The answer is the same, its an import issue with excel and not recognizing `,` as the delimiter.

---

<div class="post-metadata">

**Author:** ![mr\_searchng](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@mr\_searchng](https://discuss.elastic.co/u/mr_searchng)\
**Post date:** [September 27, 2019, 6:14pm UTC](https://discuss.elastic.co/t/csv-export-bug/201414/4 "2019-09-27T18:14:04Z")

</div>

How do I make split columns in the code section without looking at the property of the spreadsheet application?

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [September 27, 2019, 6:16pm UTC](https://discuss.elastic.co/t/csv-export-bug/201414/5 "2019-09-27T18:16:58Z")

</div>

I can not answer questions about your spread sheet application. Please ask your spread sheet application vendor.

---

<div class="post-metadata">

**Author:** ![mr\_searchng](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@mr\_searchng](https://discuss.elastic.co/u/mr_searchng)\
**Post date:** [September 27, 2019, 6:18pm UTC](https://discuss.elastic.co/t/csv-export-bug/201414/6 "2019-09-27T18:18:13Z")

</div>

agg\_table.js does not make split columns.  
how do i do it ?

---

<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:** [October 25, 2019, 6:32pm UTC](https://discuss.elastic.co/t/csv-export-bug/201414/7 "2019-10-25T18:32:32Z")

</div>

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