# Index Lookup and insert

**URL:** <https://discuss.elastic.co/t/index-lookup-and-insert/140610>\
**Category:** Logstash\
**Created:** [July 18, 2018, 7:15pm UTC](https://discuss.elastic.co/t/index-lookup-and-insert/140610 "2018-07-18T19:15:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep\_Bharmoria](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandeep_bharmoria/32/33491_2.png) [@Sandeep\_Bharmoria](https://discuss.elastic.co/u/Sandeep_Bharmoria)\
**Post date:** [July 18, 2018, 7:15pm UTC](https://discuss.elastic.co/t/index-lookup-and-insert/140610/1 "2018-07-18T19:15:31Z")

</div>

Hi,

```
    I have an index named **"Student_info"** and have 2 fields in it (one is roll number, second is name). Now I am ingesting data in second index named **"penalties"** from some csv file (this csv contains **class** and **Roll_number**. During ingestion i want to match "Roll number" from index "Student_info" and ingest the **name** from index **student_info** to index **penalties** during ingestion of CSV file using logstash. Can Some one please guide me on this.

```

Best Redards,

Sandeep

---

<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:** [July 22, 2018, 6:11pm UTC](https://discuss.elastic.co/t/index-lookup-and-insert/140610/2 "2018-07-22T18:11:18Z")

</div>

Have a look at Logstash's elasticsearch filter plugin.

---

<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:** [August 19, 2018, 6:11pm UTC](https://discuss.elastic.co/t/index-lookup-and-insert/140610/3 "2018-08-19T18:11:34Z")

</div>

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