# Grok regex with or

**URL:** <https://discuss.elastic.co/t/grok-regex-with-or/254815>\
**Category:** Logstash\
**Created:** [November 9, 2020, 6:56pm UTC](https://discuss.elastic.co/t/grok-regex-with-or/254815 "2020-11-09T18:56:29Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [November 9, 2020, 9:26pm UTC](https://discuss.elastic.co/t/grok-regex-with-or/254815/4 "2020-11-09T21:26:47Z")

</div>

> [@Carlos\_Fernando\_Palm](#):
>
> Do you know where I can find documentation on how to use a ruby filter inside logstash.conf?

The ruby filter is documented [here](https://www.elastic.co/guide/en/logstash/current/plugins-filters-ruby.html). Examples of using scan in a ruby filter can be found [here](https://discuss.elastic.co/t/stop-proccesing-events-lines-after-first-grok-match/214696/8) and [here](https://discuss.elastic.co/t/logstash-odx-input-file-unconventional-input-file/225324/2).

---

_[View the full topic](https://discuss.elastic.co/t/grok-regex-with-or/254815)._
