# KV Filter registered without jruby interruptible regular expressions enabled

**URL:** <https://discuss.elastic.co/t/kv-filter-registered-without-jruby-interruptible-regular-expressions-enabled/275916>\
**Category:** Logstash\
**Created:** [June 15, 2021, 2:12am UTC](https://discuss.elastic.co/t/kv-filter-registered-without-jruby-interruptible-regular-expressions-enabled/275916 "2021-06-15T02:12:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott\_stash](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@scott\_stash](https://discuss.elastic.co/u/scott_stash)\
**Post date:** [June 15, 2021, 2:12am UTC](https://discuss.elastic.co/t/kv-filter-registered-without-jruby-interruptible-regular-expressions-enabled/275916/1 "2021-06-15T02:12:58Z")

</div>

When logstash starts it logs this for each KV I have configured this logs:

`Jun 15 01:49:10 hostname logstash[3879863]: [2021-06-15T01:49:10,651][WARN][logstash.filters.kv] KV Filter registered without jruby interruptible regular expressions enabled (`-Djruby.regexp.interruptible=true`); timeouts may not be respected.`

In the KV's I have configured I have not set a timeout, so I believe they should timeout after 30 seconds. In my pipelines I also have written quite a bit of custom ruby.

Is there any downside to setting this value? (why isn't this the default value?)

---

<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:** [June 15, 2021, 2:29am UTC](https://discuss.elastic.co/t/kv-filter-registered-without-jruby-interruptible-regular-expressions-enabled/275916/2 "2021-06-15T02:29:25Z")

</div>

> [@scott\_stash](#):
>
> In the KV's I have configured I have not set a timeout, so I believe they should timeout after 30 seconds.

I do not think so. The default value for the [timeout option](https://www.elastic.co/guide/en/logstash/current/plugins-filters-kv.html#plugins-filters-kv-timeout_millis) is 30 seconds, but the [code](https://github.com/logstash-plugins/logstash-filter-kv/blob/4cfa272c5cf1d6159e264367f4cbe1dd4539420f/lib/logstash/filters/kv.rb#L335) is telling you that timeouts will not happen.

[This](https://github.com/elastic/logstash/issues/10976) issue has lots of discussion from folks who have forgotten more about logstash than I will ever know. If you only have the time to follow one link from that I would choose 10978. (But you should follow more!)

---

<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 13, 2021, 2:29am UTC](https://discuss.elastic.co/t/kv-filter-registered-without-jruby-interruptible-regular-expressions-enabled/275916/3 "2021-07-13T02:29:26Z")

</div>

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