# Wildcard query with a file path - Search for c:\\users\\public\*

**URL:** <https://discuss.elastic.co/t/wildcard-query-with-a-file-path-search-for-c-users-public/150384>\
**Category:** Kibana\
**Created:** [September 28, 2018, 8:01pm UTC](https://discuss.elastic.co/t/wildcard-query-with-a-file-path-search-for-c-users-public/150384 "2018-09-28T20:01:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![uklipse](https://avatars.discourse-cdn.com/v4/letter/u/cdc98d/32.png) [@uklipse](https://discuss.elastic.co/u/uklipse)\
**Post date:** [September 28, 2018, 8:01pm UTC](https://discuss.elastic.co/t/wildcard-query-with-a-file-path-search-for-c-users-public/150384/1 "2018-09-28T20:01:24Z")

</div>

Hi, I'm trying to run a query similar to below that has a file path in it but keep getting this error: Discover: Expected "\*", "", [\ \t\r\n] or end of input but ":" found. I've tried adding those but nothing.

Any suggestions on how to do this?

event\_id:1 AND event\_data.Image:c:\\users\\public\*

Thanks

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [October 1, 2018, 8:09pm UTC](https://discuss.elastic.co/t/wildcard-query-with-a-file-path-search-for-c-users-public/150384/2 "2018-10-01T20:09:28Z")

</div>

Hey @uklipse, you'll have to escape the `:` as well, so `event_data.Image.keyword:c\:\\users\\public\\*`

---

<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:** [October 29, 2018, 8:09pm UTC](https://discuss.elastic.co/t/wildcard-query-with-a-file-path-search-for-c-users-public/150384/3 "2018-10-29T20:09:31Z")

</div>

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