# Search query issues in Kibana

**URL:** <https://discuss.elastic.co/t/search-query-issues-in-kibana/87822>\
**Category:** Kibana\
**Created:** [May 31, 2017, 11:57pm UTC](https://discuss.elastic.co/t/search-query-issues-in-kibana/87822 "2017-05-31T23:57:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_1](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Steve\_1](https://discuss.elastic.co/u/Steve_1)\
**Post date:** [May 31, 2017, 11:57pm UTC](https://discuss.elastic.co/t/search-query-issues-in-kibana/87822/1 "2017-05-31T23:57:04Z")

</div>

I have the following log message in Kibana:

`INFO : Sample.101-20170530.20170530-102.103.sample`

When I search for numbers `102` or `103`, I don't get any results, though I get results when I search either for `101` or for `20170530`

What should be correct query for searching either `102` or `103` number.  
Btw, when I search for `102.103` I get expected message.

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [June 1, 2017, 3:57pm UTC](https://discuss.elastic.co/t/search-query-issues-in-kibana/87822/2 "2017-06-01T15:57:44Z")

</div>

It depends on the analyzer being used for your index. [https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-analyzers.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-analyzers.html) has more details on analyzers.

Is this data in a standardized format? If it is, I would recommend defining mappings and parsing the field out using [ingest node's grok processor](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/grok-processor.html). It will let your searches be more specific.

---

<div class="post-metadata">

**Author:** ![Steve\_1](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Steve\_1](https://discuss.elastic.co/u/Steve_1)\
**Post date:** [June 1, 2017, 8:16pm UTC](https://discuss.elastic.co/t/search-query-issues-in-kibana/87822/3 "2017-06-01T20:16:48Z")

</div>

Thanks. I am confused how I can change analyzer to the correct one.  
The data is in standardized format but there are multiple different formats in log file, I think I cannot define the pattern for every such format.

---

<div class="post-metadata">

**Author:** ![Steve\_1](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Steve\_1](https://discuss.elastic.co/u/Steve_1)\
**Post date:** [June 7, 2017, 5:12pm UTC](https://discuss.elastic.co/t/search-query-issues-in-kibana/87822/4 "2017-06-07T17:12:13Z")

</div>

Btw, the data is Apache log. But I am curious how I can change analyzer to be able to search for every keyword.

I just created sample log file with the following record and send it to Elasticsearch:

`15:35:18,125 INFO [sample]: [sample] Sample.101-20170530.20170530-102.103.sample`

In Kibana I tried to search for `101`, `102` and `103` and only when searched for `101` I was able to see the record in results.

Btw, I noticed, when I double click `102` or `103` in Kibana, both numbers and dot between them are highlighted: `102.103`, and I am able to search for `102.103` and get the results record. Same for `20170530.20170530`.

---

<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:** [July 5, 2017, 5:12pm UTC](https://discuss.elastic.co/t/search-query-issues-in-kibana/87822/5 "2017-07-05T17:12:24Z")

</div>

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