# Use wildcards to search in Kibana

**URL:** <https://discuss.elastic.co/t/use-wildcards-to-search-in-kibana/161109>\
**Category:** Elasticsearch\
**Created:** [December 17, 2018, 9:59am UTC](https://discuss.elastic.co/t/use-wildcards-to-search-in-kibana/161109 "2018-12-17T09:59:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![M.alsioufi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m.alsioufi/32/52269_2.png) [@M.alsioufi](https://discuss.elastic.co/u/M.alsioufi)\
**Post date:** [December 17, 2018, 9:59am UTC](https://discuss.elastic.co/t/use-wildcards-to-search-in-kibana/161109/1 "2018-12-17T09:59:51Z")

</div>

Hi,

I have an index where I store file names and their full paths like this

`{"file_name": "abc-01_00", "full_path":"D:\\UAE\\Data\\abc-01\\abc-01_00.clc"}`

These files represent a series, so the next file name in the same series(sequence) might be abc-01\_10, and the one after abc-01\_15 and so on. Using the file name I can know that these files are related to the sequence abc-01.  
Files of another sequence will have another prefix for example: bsa-02\_00. In general, the first part (some letter - some numbers) represents the sequence name and the rest (\_some numbers) represents some id for the file in the sequence.

What I want to do is to search for files related to the same sequence without the need to add an extra field to my index; if I search in Kibana's search bar for abc-01\_\* it should return all files of the sequence abc-01.

However, having "-" in the file name breaks this search and I get everything starts with abc not abc-01. How can I solve this? Should I create some analyzer for the file name or what is the way to go?

---

<div class="post-metadata">

**Author:** ![monfera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/monfera/32/26467_2.png) [@monfera](https://discuss.elastic.co/u/monfera)\
**Post date:** [December 17, 2018, 10:20am UTC](https://discuss.elastic.co/t/use-wildcards-to-search-in-kibana/161109/2 "2018-12-17T10:20:34Z")

</div>

Hello @M.alsioufi - your suspicion is right, it's more of an Elasticsearch question. In any case please check out [this discussion](https://discuss.elastic.co/t/escaping-special-characters-in-wildcard-query/5819) as it might help with your problem.

---

<div class="post-metadata">

**Author:** ![M.alsioufi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m.alsioufi/32/52269_2.png) [@M.alsioufi](https://discuss.elastic.co/u/M.alsioufi)\
**Post date:** [December 17, 2018, 10:32am UTC](https://discuss.elastic.co/t/use-wildcards-to-search-in-kibana/161109/3 "2018-12-17T10:32:36Z")

</div>

Then I moved it to Elasticsearch 🙂

---

<div class="post-metadata">

**Author:** ![M.alsioufi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m.alsioufi/32/52269_2.png) [@M.alsioufi](https://discuss.elastic.co/u/M.alsioufi)\
**Post date:** [December 17, 2018, 3:43pm UTC](https://discuss.elastic.co/t/use-wildcards-to-search-in-kibana/161109/4 "2018-12-17T15:43:50Z")

</div>

I dont think this discussion answers my question, since I want to have this functionality in the search bar in Kibana

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 17, 2018, 4:05pm UTC](https://discuss.elastic.co/t/use-wildcards-to-search-in-kibana/161109/5 "2018-12-17T16:05:20Z")

</div>

> [@M.alsioufi](#):
>
> What I want to do is to search for files related to the same sequence without the need to add an extra field to my index

I would indeed recommending parsing this out at index time and storing it separately. Doing this a query time is likely to scale badly, and you could end up seeing bad performance for larger data volumes.

---

<div class="post-metadata">

**Author:** ![M.alsioufi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m.alsioufi/32/52269_2.png) [@M.alsioufi](https://discuss.elastic.co/u/M.alsioufi)\
**Post date:** [December 17, 2018, 4:08pm UTC](https://discuss.elastic.co/t/use-wildcards-to-search-in-kibana/161109/6 "2018-12-17T16:08:46Z")

</div>

But this is a simple textual search for a field of type text, which is the main task of Elasticsearch, I think it should not be hard to be done online, or? 🤔

---

<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:** [January 14, 2019, 4:08pm UTC](https://discuss.elastic.co/t/use-wildcards-to-search-in-kibana/161109/7 "2019-01-14T16:08:48Z")

</div>

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