# Ruby code Help

**URL:** <https://discuss.elastic.co/t/ruby-code-help/185639>\
**Category:** Logstash\
**Created:** [June 13, 2019, 12:20pm UTC](https://discuss.elastic.co/t/ruby-code-help/185639 "2019-06-13T12:20:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Sambrekar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amit_sambrekar/32/48075_2.png) [@Amit\_Sambrekar](https://discuss.elastic.co/u/Amit_Sambrekar)\
**Post date:** [June 13, 2019, 12:20pm UTC](https://discuss.elastic.co/t/ruby-code-help/185639/1 "2019-06-13T12:20:53Z")

</div>

How do I add a Ruby filter in my logstash conf file.  
fieldvalue1 fieldvalue2 field valu3  
ASD1 Dummy1 DummyValue1  
ASD2 Dummy2 DummyValue2  
ASD1 Dummy3 DummyValue3  
this is how it looks my index data from database,  
now i want to add filter in conf file in such a way that, for ASD1, the particular value should pop up, like for ASD1, Dummy1 and Dummy2 and their values should come up. How do i do it

---

<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 11, 2019, 12:20pm UTC](https://discuss.elastic.co/t/ruby-code-help/185639/2 "2019-07-11T12:20:56Z")

</div>

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