# Import Multiple Files CSV - Aggregate Data

**URL:** <https://discuss.elastic.co/t/import-multiple-files-csv-aggregate-data/222612>\
**Category:** Logstash\
**Created:** [March 8, 2020, 5:02pm UTC](https://discuss.elastic.co/t/import-multiple-files-csv-aggregate-data/222612 "2020-03-08T17:02:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brunojpsantos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brunojpsantos/32/51588_2.png) [@brunojpsantos](https://discuss.elastic.co/u/brunojpsantos)\
**Post date:** [March 8, 2020, 5:02pm UTC](https://discuss.elastic.co/t/import-multiple-files-csv-aggregate-data/222612/1 "2020-03-08T17:02:34Z")

</div>

Hi,  
I'm working on a project that I need to import 2 csv files, rename/modify that entries and agregate that 2 files...  
For example, I have a "file1" that contains the columns : id, name, state  
And I have a "file2" with the column names: entry, operator, date

I want to modify the column "entry" to "id", and do a relation between the files..  
All this in logstash.conf

Can you help me?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 8, 2020, 6:07pm UTC](https://discuss.elastic.co/t/import-multiple-files-csv-aggregate-data/222612/2 "2020-03-08T18:07:28Z")

</div>

If you can split "file2" into two files, one containing entry,operator and the other containing entry,date then you could do it using a couple of [translate](https://www.elastic.co/guide/en/logstash/current/plugins-filters-translate.html) filters.

---

<div class="post-metadata">

**Author:** ![brunojpsantos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brunojpsantos/32/51588_2.png) [@brunojpsantos](https://discuss.elastic.co/u/brunojpsantos)\
**Post date:** [March 9, 2020, 9:23am UTC](https://discuss.elastic.co/t/import-multiple-files-csv-aggregate-data/222612/3 "2020-03-09T09:23:51Z")

</div>

can you do me a example?

---

<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:** [April 6, 2020, 9:23am UTC](https://discuss.elastic.co/t/import-multiple-files-csv-aggregate-data/222612/4 "2020-04-06T09:23:55Z")

</div>

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