# Join two csv files

**URL:** <https://discuss.elastic.co/t/join-two-csv-files/301949>\
**Category:** Logstash\
**Created:** [April 8, 2022, 10:10am UTC](https://discuss.elastic.co/t/join-two-csv-files/301949 "2022-04-08T10:10:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 8, 2022, 2:25pm UTC](https://discuss.elastic.co/t/join-two-csv-files/301949/2 "2022-04-08T14:25:55Z")

</div>

> [@S-elk](#):
>
> I have 2 csv files that share a common field and I would like to pass 2 fields from one of the files to the other.

Use a translate filter. There are many threads that discuss this. For example, [here](https://discuss.elastic.co/t/logstash-how-to-configure-csv-filter-for-joining-2-csv-files-based-on-a-common-field-and-send-the-joined-log-to-es/167125) and [here](https://discuss.elastic.co/t/merge-data-and-metadata-csv-file-in-logstash/295815).

---

_[View the full topic](https://discuss.elastic.co/t/join-two-csv-files/301949)._
