# Logstash: Custom filter reading CSV

**URL:** https://discuss.elastic.co/t/logstash-custom-filter-reading-csv/38302
**Category:** Logstash
**Created:** [January 4, 2016, 9:52am UTC](https://discuss.elastic.co/t/logstash-custom-filter-reading-csv/38302 "2016-01-04T09:52:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![krushnat\_khawale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krushnat_khawale/32/6652_2.png) [@krushnat\_khawale](https://discuss.elastic.co/u/krushnat_khawale)
#### Post date: [January 4, 2016, 9:52am UTC](https://discuss.elastic.co/t/logstash-custom-filter-reading-csv/38302/1 "2016-01-04T09:52:54Z")

</div>

In my use case, I need to upload data into the logstash and simultaniously need to check the data based on another file. For this reason, I need to read mapping file at once and to validate against data.

I am writing my own filter.

Suggest solution.

---

<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: [January 4, 2016, 10:14am UTC](https://discuss.elastic.co/t/logstash-custom-filter-reading-csv/38302/2 "2016-01-04T10:14:01Z")

</div>

Hard to suggest much without additional details, but it sounds like the translate filter could help you. If you want a more specific answer you'll have to ask a more specific question.

---

<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: [July 6, 2017, 5:16am UTC](https://discuss.elastic.co/t/logstash-custom-filter-reading-csv/38302/3 "2017-07-06T05:16:59Z")

</div>


