# Does the same filtering that works for Discover also work for Logs? So far it's not for me

**URL:** <https://discuss.elastic.co/t/does-the-same-filtering-that-works-for-discover-also-work-for-logs-so-far-its-not-for-me/157123>\
**Category:** Logs\
**Created:** [November 16, 2018, 7:06pm UTC](https://discuss.elastic.co/t/does-the-same-filtering-that-works-for-discover-also-work-for-logs-so-far-its-not-for-me/157123 "2018-11-16T19:06:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfinn](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dfinn](https://discuss.elastic.co/u/dfinn)\
**Post date:** [November 16, 2018, 7:06pm UTC](https://discuss.elastic.co/t/does-the-same-filtering-that-works-for-discover-also-work-for-logs-so-far-its-not-for-me/157123/1 "2018-11-16T19:06:21Z")

</div>

I've got Logs working, I think it's going to be a really helpful feature. I do have one question though.

Here's an example of a query that works in Discovery but if I try it in Logs it says " There are no log messages to display."

beat.name.keyword:/ps-test-app.\*/ AND type:rails\_json

In Discover this returns quite a bit of logs from the past 15 minutes. Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [November 16, 2018, 10:16pm UTC](https://discuss.elastic.co/t/does-the-same-filtering-that-works-for-discover-also-work-for-logs-so-far-its-not-for-me/157123/2 "2018-11-16T22:16:46Z")

</div>

_(edited to add a documentation link)_

We should probably document it better, that the filter bar in the Logs UI uses the [Kibana Query Language](https://www.elastic.co/guide/en/kibana/6.5/kuery-query.html) instead of the old lucene query language. The filter would read slightly different because it uses wildcards instead of regular expressions, e.g.

```auto
beat.name.keyword:ps-test-app* AND type:rails_json

```

You can enable the Kibana Query Language in the discover/visualize/dashboard query bar as well using the "Options" button to the right:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/0/60fd2d9d6757c75436824546511b543fe3b216ac.png)

---

<div class="post-metadata">

**Author:** ![dfinn](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dfinn](https://discuss.elastic.co/u/dfinn)\
**Post date:** [November 16, 2018, 10:24pm UTC](https://discuss.elastic.co/t/does-the-same-filtering-that-works-for-discover-also-work-for-logs-so-far-its-not-for-me/157123/3 "2018-11-16T22:24:06Z")

</div>

That does work, thanks!

If I could make a suggestion, it would be great if Logs could have the option to save filters. And/or to use existing saved filters.

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [November 16, 2018, 10:26pm UTC](https://discuss.elastic.co/t/does-the-same-filtering-that-works-for-discover-also-work-for-logs-so-far-its-not-for-me/157123/4 "2018-11-16T22:26:55Z")

</div>

That is a very good suggestion, thank you. It's something we have on our list of improvements.

---

<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:** [December 14, 2018, 10:27pm UTC](https://discuss.elastic.co/t/does-the-same-filtering-that-works-for-discover-also-work-for-logs-so-far-its-not-for-me/157123/5 "2018-12-14T22:27:01Z")

</div>

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