# Kv filter - bracket removal in the field

**URL:** <https://discuss.elastic.co/t/kv-filter-bracket-removal-in-the-field/122247>\
**Category:** Logstash\
**Created:** [March 2, 2018, 12:28pm UTC](https://discuss.elastic.co/t/kv-filter-bracket-removal-in-the-field/122247 "2018-03-02T12:28:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raj_kumar/32/25420_2.png) [@Raj\_Kumar](https://discuss.elastic.co/u/Raj_Kumar)\
**Post date:** [March 2, 2018, 12:28pm UTC](https://discuss.elastic.co/t/kv-filter-bracket-removal-in-the-field/122247/1 "2018-03-02T12:28:12Z")

</div>

Hi All,

Iam trying to remove the brackets in the value

![image](https://us1.discourse-cdn.com/elastic/original/3X/3/f/3f40f18823b87f115e77ba2dfccb06c265e1dc7e.png)

but am not sure how to do it is it like this or something else

```auto
  kv {
 remove_char_value => "[]"
  include_brackets => true
       }
     }

```

Thanks,  
Raj

---

<div class="post-metadata">

**Author:** ![Raj\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raj_kumar/32/25420_2.png) [@Raj\_Kumar](https://discuss.elastic.co/u/Raj_Kumar)\
**Post date:** [March 13, 2018, 9:38am UTC](https://discuss.elastic.co/t/kv-filter-bracket-removal-in-the-field/122247/2 "2018-03-13T09:38:07Z")

</div>

Any update on this ? Please

---

<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:** [March 13, 2018, 11:45am UTC](https://discuss.elastic.co/t/kv-filter-bracket-removal-in-the-field/122247/3 "2018-03-13T11:45:01Z")

</div>

Look at the example in the docs... [https://www.elastic.co/guide/en/logstash/current/plugins-filters-kv.html#plugins-filters-kv-remove\_char\_value](https://www.elastic.co/guide/en/logstash/current/plugins-filters-kv.html#plugins-filters-kv-remove_char_value)

You should notice that brackets are escaped.

---

<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 10, 2018, 11:46am UTC](https://discuss.elastic.co/t/kv-filter-bracket-removal-in-the-field/122247/4 "2018-04-10T11:46:06Z")

</div>

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