# KDL filter to exclude results with character?

**URL:** <https://discuss.elastic.co/t/kdl-filter-to-exclude-results-with-character/366100>\
**Category:** Kibana\
**Created:** [September 5, 2024, 1:11pm UTC](https://discuss.elastic.co/t/kdl-filter-to-exclude-results-with-character/366100 "2024-09-05T13:11:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![randomnamegenerator](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@randomnamegenerator](https://discuss.elastic.co/u/randomnamegenerator)\
**Post date:** [September 5, 2024, 1:11pm UTC](https://discuss.elastic.co/t/kdl-filter-to-exclude-results-with-character/366100/1 "2024-09-05T13:11:46Z")

</div>

Hello people of the internet

I am trying to create a field filter in kibana that excludes and results including the ? character

After an application update we have log results for domain\username? and domain\username , we wish to exclude the results including ? as they are messing with the reports.

Reading around it is suggesting that something like "not fieldname.keyword "\*?" " or \*\? should work but I still see results with ? included in the search hits, no error is returned

Allow leading wildcards in query is enabled and we are running ELK 7.14

Any help would be appreciated
