# How to filter in message this value "${date:"

**URL:** https://discuss.elastic.co/t/how-to-filter-in-message-this-value-date/292313
**Category:** Kibana
**Tags:** kql-kibana-query-language
**Created:** [December 17, 2021, 1:43pm UTC](https://discuss.elastic.co/t/how-to-filter-in-message-this-value-date/292313 "2021-12-17T13:43:51Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Roccof97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roccof97/32/97628_2.png) [@Roccof97](https://discuss.elastic.co/u/Roccof97)
#### Post date: [December 17, 2021, 1:43pm UTC](https://discuss.elastic.co/t/how-to-filter-in-message-this-value-date/292313/1 "2021-12-17T13:43:52Z")

</div>

Hi,

is it possible to search for this string ${date: including the symbol '${:' in the message field?  
to date I have not succeeded .

I have tried this:  
message:"${date:"

but excludes ${:

who can help me?

Thanks!

---

<div class="post-metadata">

### Author: ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)
#### Post date: [December 17, 2021, 2:34pm UTC](https://discuss.elastic.co/t/how-to-filter-in-message-this-value-date/292313/2 "2021-12-17T14:34:16Z")

</div>

It looks like it works for me. The only part that doesn't is the highlighting doesn't seem to cover special characters but the filtering works.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/5/f5c8c688bcea1ac2a9d227baef6751ee8ea2e395.png)

---

<div class="post-metadata">

### Author: ![Roccof97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roccof97/32/97628_2.png) [@Roccof97](https://discuss.elastic.co/u/Roccof97)
#### Post date: [December 21, 2021, 11:21am UTC](https://discuss.elastic.co/t/how-to-filter-in-message-this-value-date/292313/4 "2021-12-21T11:21:43Z")

</div>

Hi,

yes but this makes my search dirty because it also finds the values ​​with only "date" and that's not good...  
for example:

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/e/8e3e50fbedf9dbff96f4563d98e43686c0ca321d.png)

---

<div class="post-metadata">

### Author: ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)
#### Post date: [December 21, 2021, 1:01pm UTC](https://discuss.elastic.co/t/how-to-filter-in-message-this-value-date/292313/6 "2021-12-21T13:01:43Z")

</div>

I tested with a few more records and I see what you mean. I couldn't find a way to filter it using KQL.

If it's possible I would transform the data coming in if it's a hard requirement to match that phrase.

---

<div class="post-metadata">

### Author: ![Roccof97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roccof97/32/97628_2.png) [@Roccof97](https://discuss.elastic.co/u/Roccof97)
#### Post date: [December 22, 2021, 2:50pm UTC](https://discuss.elastic.co/t/how-to-filter-in-message-this-value-date/292313/7 "2021-12-22T14:50:11Z")

</div>

Hi,

unfortunately I don't know Lucene well, can you tell me if you can also filter special characters with that?

Thanks

---

<div class="post-metadata">

### Author: ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)
#### Post date: [December 22, 2021, 2:54pm UTC](https://discuss.elastic.co/t/how-to-filter-in-message-this-value-date/292313/8 "2021-12-22T14:54:52Z")

</div>

Are you searching on message as a text or keyword field?

As a keyword `message.keyword: "${date:"` doesn't return records with `date` in it.

But `message: "${date:"` does.

---

<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 19, 2022, 2:55pm UTC](https://discuss.elastic.co/t/how-to-filter-in-message-this-value-date/292313/9 "2022-01-19T14:55:46Z")

</div>

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