# Importing multiple csv files to different indexes in elastic by beats?

**URL:** <https://discuss.elastic.co/t/importing-multiple-csv-files-to-different-indexes-in-elastic-by-beats/97359>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 17, 2017, 7:58am UTC](https://discuss.elastic.co/t/importing-multiple-csv-files-to-different-indexes-in-elastic-by-beats/97359 "2017-08-17T07:58:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![remziay](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@remziay](https://discuss.elastic.co/u/remziay)\
**Post date:** [August 17, 2017, 7:58am UTC](https://discuss.elastic.co/t/importing-multiple-csv-files-to-different-indexes-in-elastic-by-beats/97359/1 "2017-08-17T07:58:30Z")

</div>

Hello, is there a way to import different csv files to elastic (each csv have its own index on elastic) via beats?

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [August 17, 2017, 10:07pm UTC](https://discuss.elastic.co/t/importing-multiple-csv-files-to-different-indexes-in-elastic-by-beats/97359/2 "2017-08-17T22:07:02Z")

</div>

I think your best option for processing CSV data would be to read the file with Filebeat, send it to Logstash, process it with a [csv filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-csv.html), then forward it to Elasticsearch.

While processing the data in Logstash you could set the destination index based on the source file name or some other attribute of the data.

---

<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:** [September 14, 2017, 10:07pm UTC](https://discuss.elastic.co/t/importing-multiple-csv-files-to-different-indexes-in-elastic-by-beats/97359/3 "2017-09-14T22:07:15Z")

</div>

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