# Kibana filter not working correctly with dash characters

**URL:** <https://discuss.elastic.co/t/kibana-filter-not-working-correctly-with-dash-characters/218035>\
**Category:** Kibana\
**Created:** [February 5, 2020, 5:26pm UTC](https://discuss.elastic.co/t/kibana-filter-not-working-correctly-with-dash-characters/218035 "2020-02-05T17:26:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![silentfilm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/silentfilm/32/44348_2.png) [@silentfilm](https://discuss.elastic.co/u/silentfilm)\
**Post date:** [February 5, 2020, 5:26pm UTC](https://discuss.elastic.co/t/kibana-filter-not-working-correctly-with-dash-characters/218035/1 "2020-02-05T17:26:36Z")

</div>

![NS-65879_elasticsearch_filter](https://us1.discourse-cdn.com/elastic/original/3X/a/6/a64d439bead0d0870cb713072eb96b32c05e03c1.png)

This could be an Elasticsearch issue, but I am seeing it Kibana. If I have a name filter that includes a dash character, then the filter only filters up to the dash character, and allows anything after it. In this example, I'm filtering on "name:EXPORT.pipeline.Subscriber-Control\_Plane\_Spark\_CPEvent.output.counter", but getting all kinds of values that start with "name:EXPORT.pipeline.Subscriber".

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [February 5, 2020, 7:07pm UTC](https://discuss.elastic.co/t/kibana-filter-not-working-correctly-with-dash-characters/218035/2 "2020-02-05T19:07:04Z")

</div>

hi @silentfilm,

I think the `-` is a reserved character in the Lucene query-syntax ([https://lucene.apache.org/core/2\_9\_4/queryparsersyntax.html#-](https://lucene.apache.org/core/2_9_4/queryparsersyntax.html#-)) . Could you try quoting your search-string?

`name:"EXPORT.pipeline.Subscriber-Control_Plane_Spark_CPEvent.output.counter"`

---

<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:** [March 4, 2020, 7:07pm UTC](https://discuss.elastic.co/t/kibana-filter-not-working-correctly-with-dash-characters/218035/3 "2020-03-04T19:07:13Z")

</div>

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