# User\_agent filter regexes.yaml location

**URL:** <https://discuss.elastic.co/t/user-agent-filter-regexes-yaml-location/256625>\
**Category:** Logstash\
**Created:** [November 25, 2020, 9:27am UTC](https://discuss.elastic.co/t/user-agent-filter-regexes-yaml-location/256625 "2020-11-25T09:27:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![probson](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@probson](https://discuss.elastic.co/u/probson)\
**Post date:** [November 25, 2020, 9:27am UTC](https://discuss.elastic.co/t/user-agent-filter-regexes-yaml-location/256625/1 "2020-11-25T09:27:03Z")

</div>

Hi,

I am looking to use the user\_agent filter in logstash. In the guide ([https://www.elastic.co/guide/en/logstash/current/plugins-filters-useragent.html#plugins-filters-useragent-regexes](https://www.elastic.co/guide/en/logstash/current/plugins-filters-useragent.html#plugins-filters-useragent-regexes)) it states  
If not specified, this will default to the `regexes.yaml` that ships with logstash

Where would this file be within logstash? I have searched and cannot find it, i am trying to find out if that is kept upto date by logstash. I am on 7.10

Thanks

---

<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 25, 2020, 1:56pm UTC](https://discuss.elastic.co/t/user-agent-filter-regexes-yaml-location/256625/2 "2020-11-25T13:56:40Z")

</div>

You can find it in /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-filter-useragent-3.2.4-java/vendor/jar-dependencies/org/logstash/filters/logstash-filter-useragent/3.2.4/logstash-filter-useragent-3.2.4.jar

```auto
/usr/share/logstash/jdk/bin/jar tvf logstash-filter-useragent-3.2.4.jar | grep rege
176617 Fri May 24 17:39:28 EDT 2019 regexes.yaml

```

---

<div class="post-metadata">

**Author:** ![probson](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@probson](https://discuss.elastic.co/u/probson)\
**Post date:** [November 25, 2020, 2:11pm UTC](https://discuss.elastic.co/t/user-agent-filter-regexes-yaml-location/256625/3 "2020-11-25T14:11:21Z")

</div>

@Badger  
Thank you, didnt think to look in the files. I will be pulling the latest regexes myself then for the user agent.

---

<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:** [December 23, 2020, 2:11pm UTC](https://discuss.elastic.co/t/user-agent-filter-regexes-yaml-location/256625/4 "2020-12-23T14:11:39Z")

</div>

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