# Kv plugin value is empty

**URL:** <https://discuss.elastic.co/t/kv-plugin-value-is-empty/124698>\
**Category:** Logstash\
**Created:** [March 20, 2018, 7:39am UTC](https://discuss.elastic.co/t/kv-plugin-value-is-empty/124698 "2018-03-20T07:39:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyb1222](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@tyb1222](https://discuss.elastic.co/u/tyb1222)\
**Post date:** [March 20, 2018, 7:39am UTC](https://discuss.elastic.co/t/kv-plugin-value-is-empty/124698/1 "2018-03-20T07:39:02Z")

</div>

I had a problem when the key-value pair like this ip= error\_code=404.the result would be ip=error\_code=404。

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [March 20, 2018, 7:52am UTC](https://discuss.elastic.co/t/kv-plugin-value-is-empty/124698/2 "2018-03-20T07:52:53Z")

</div>

A recent update to the kv filter added the ability to specify complete patterns for field and value splitters.

You'll need to upgrade the plugin:

```auto
bin/logstash-plugin update logstash-filter-kv

```

Once you have done this, we can define the `field_split_pattern` to be "EITHER a space OR any word-break that is followed by something that looks like a key":

```auto
( |\b(?=[a-z_]+=))

```

---

<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:** [April 17, 2018, 7:53am UTC](https://discuss.elastic.co/t/kv-plugin-value-is-empty/124698/3 "2018-04-17T07:53:11Z")

</div>

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