# KV plugin filter not working

**URL:** <https://discuss.elastic.co/t/kv-plugin-filter-not-working/133704>\
**Category:** Logstash\
**Created:** [May 29, 2018, 2:54pm UTC](https://discuss.elastic.co/t/kv-plugin-filter-not-working/133704 "2018-05-29T14:54:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![br14nb0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/br14nb0/32/28814_2.png) [@br14nb0](https://discuss.elastic.co/u/br14nb0)\
**Post date:** [May 29, 2018, 2:54pm UTC](https://discuss.elastic.co/t/kv-plugin-filter-not-working/133704/1 "2018-05-29T14:54:06Z")

</div>

This is my config filter  
grok {  
match =\> { "message" =\> "\<%{INT:number}\>%{SYSLOGTIMESTAMP:timestamp}%{SPACE}%{NOTSPACE:app}%{SPACE}%{NOTSPACE:logsource}[%{WORD:status}]%{SPACE}%{INT:eventid}%{SPACE}%{GREEDYDATA:mess}.%{SPACE}%{GREEDYDATA:service}:%{SPACE}%{GREEDYDATA:wininfo}"}  
}  
kv {  
source =\> "wininfo"  
value\_split =\> ":"  
field\_split =\> "\x7f+"}  
}

Character "\x7f" is DEL character, it seperates the pairs. But kv not working at all. Thanks for any helps

---

<div class="post-metadata">

**Author:** ![rcowart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcowart/32/88091_2.png) [@rcowart](https://discuss.elastic.co/u/rcowart)\
**Post date:** [May 29, 2018, 3:17pm UTC](https://discuss.elastic.co/t/kv-plugin-filter-not-working/133704/2 "2018-05-29T15:17:52Z")

</div>

`field_split` takes only a single character. You need to use `field_split_pattern` which takes a regex.

---

<div class="post-metadata">

**Author:** ![br14nb0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/br14nb0/32/28814_2.png) [@br14nb0](https://discuss.elastic.co/u/br14nb0)\
**Post date:** [May 30, 2018, 2:14am UTC](https://discuss.elastic.co/t/kv-plugin-filter-not-working/133704/3 "2018-05-30T02:14:44Z")

</div>

I am using logstash 6.1.0, and this is my ERROR when use split pattern  
[ERROR][logstash.filters.kv] Unknown setting 'field\_split\_pattern' for kv  
I checked the document about KV filter, I don't understand why it is false.

---

<div class="post-metadata">

**Author:** ![rcowart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcowart/32/88091_2.png) [@rcowart](https://discuss.elastic.co/u/rcowart)\
**Post date:** [May 30, 2018, 8:04am UTC](https://discuss.elastic.co/t/kv-plugin-filter-not-working/133704/4 "2018-05-30T08:04:50Z")

</div>

You can update the plugin by running `logstash-plugins update logstash-filter-kv` or just update all plugins with `logstash-plugins update`

---

<div class="post-metadata">

**Author:** ![br14nb0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/br14nb0/32/28814_2.png) [@br14nb0](https://discuss.elastic.co/u/br14nb0)\
**Post date:** [May 30, 2018, 8:43am UTC](https://discuss.elastic.co/t/kv-plugin-filter-not-working/133704/5 "2018-05-30T08:43:57Z")

</div>

Okay thanks. I solved 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:** [June 27, 2018, 8:43am UTC](https://discuss.elastic.co/t/kv-plugin-filter-not-working/133704/6 "2018-06-27T08:43:58Z")

</div>

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