# Index multiple csvs

**URL:** <https://discuss.elastic.co/t/index-multiple-csvs/74933>\
**Category:** Logstash\
**Created:** [February 13, 2017, 10:02pm UTC](https://discuss.elastic.co/t/index-multiple-csvs/74933 "2017-02-13T22:02:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tatireddy\_Reddy](https://avatars.discourse-cdn.com/v4/letter/t/b5ac83/32.png) [@Tatireddy\_Reddy](https://discuss.elastic.co/u/Tatireddy_Reddy)\
**Post date:** [February 13, 2017, 10:02pm UTC](https://discuss.elastic.co/t/index-multiple-csvs/74933/1 "2017-02-13T22:02:49Z")

</div>

Hi All,

I have mulitiple csvs with different columns how do i need to index using logstash instead of creating one big csv.

Appreciated help.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 14, 2017, 6:45am UTC](https://discuss.elastic.co/t/index-multiple-csvs/74933/2 "2017-02-14T06:45:15Z")

</div>

You can e.g. assign different types to them (with the input plugin's `type` option) and then use conditionals to choose between different csv filters.

---

<div class="post-metadata">

**Author:** ![Tatireddy\_Reddy](https://avatars.discourse-cdn.com/v4/letter/t/b5ac83/32.png) [@Tatireddy\_Reddy](https://discuss.elastic.co/u/Tatireddy_Reddy)\
**Post date:** [February 22, 2017, 6:03pm UTC](https://discuss.elastic.co/t/index-multiple-csvs/74933/3 "2017-02-22T18:03:59Z")

</div>

Yes I did it but if i am updating the same record it will impact my performance.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 23, 2017, 6:37am UTC](https://discuss.elastic.co/t/index-multiple-csvs/74933/4 "2017-02-23T06:37:45Z")

</div>

Oh, so you're actually talking about joining data from two CSVs? Then say so.

Logstash doesn't support such joining, so you either have to update documents multiple times or merge the CSVs before Logstash sees them.

---

<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:** [March 23, 2017, 6:38am UTC](https://discuss.elastic.co/t/index-multiple-csvs/74933/5 "2017-03-23T06:38:16Z")

</div>

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