# Special Character # search on Kibana Search Bar

**URL:** https://discuss.elastic.co/t/special-character-search-on-kibana-search-bar/355147
**Category:** Kibana
**Created:** [March 11, 2024, 10:51am UTC](https://discuss.elastic.co/t/special-character-search-on-kibana-search-bar/355147 "2024-03-11T10:51:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![nkf\_123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nkf_123/32/125692_2.png) [@nkf\_123](https://discuss.elastic.co/u/nkf_123)
#### Post date: [March 11, 2024, 10:51am UTC](https://discuss.elastic.co/t/special-character-search-on-kibana-search-bar/355147/1 "2024-03-11T10:51:47Z")

</div>

I have defined an analyzer  
"analyzer": {  
"special\_analyzer": {  
"filter": [  
"lowercase",  
"custom\_special\_char\_filter"  
],  
"type": "custom",  
"tokenizer": "whitespace"  
}  
}  
},

and it analyzes the # value

QUERY:  
POST .ds-os-logs-test-2024.03.07-000001/\_analyze  
{  
"analyzer": "special\_analyzer",  
"text": "############### For ObjectID:332270810058 getting trace BV ID:212318 BV Value:337040313158 Found in Cache?:T ----- PL/SQL Call Stack -----"  
}

OUTPUT:  
{  
"tokens": [  
{  
"token": "###############",  
"start\_offset": 0,  
"end\_offset": 15,  
"type": "word",  
"position": 0  
},  
{  
"token": "for",  
"start\_offset": 16,  
"end\_offset": 19,  
"type": "word",  
"position": 1  
},  
.  
.  
.

But when I search for os.log.message : ############### I do not get any records.  
I have even tried using **###############** , /###############/, **#**  
Nothing works.

Kindly advise what I need to do.

---

<div class="post-metadata">

### Author: ![Priscilla\_Parodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priscilla_parodi/32/43047_2.png) [@Priscilla\_Parodi](https://discuss.elastic.co/u/Priscilla_Parodi)
#### Post date: [March 12, 2024, 5:05pm UTC](https://discuss.elastic.co/t/special-character-search-on-kibana-search-bar/355147/2 "2024-03-12T17:05:52Z")

</div>

Hello @nkf_123, welcome to the community!

Try filtering by the keyword subfield: `os.log.message.keyword: ###############`

---

<div class="post-metadata">

### Author: ![nkf\_123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nkf_123/32/125692_2.png) [@nkf\_123](https://discuss.elastic.co/u/nkf_123)
#### Post date: [March 13, 2024, 8:40am UTC](https://discuss.elastic.co/t/special-character-search-on-kibana-search-bar/355147/3 "2024-03-13T08:40:28Z")

</div>

os.log.message is of type: text.  
I need to maintain it as type - text.

What is strange is that the analyzer picks the # value due to whitespace tokenizer but it fails to search for it in kibana search bar

---

<div class="post-metadata">

### Author: ![nkf\_123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nkf_123/32/125692_2.png) [@nkf\_123](https://discuss.elastic.co/u/nkf_123)
#### Post date: [March 14, 2024, 4:33pm UTC](https://discuss.elastic.co/t/special-character-search-on-kibana-search-bar/355147/4 "2024-03-14T16:33:48Z")

</div>

[@elastic\_team](https://discuss.elastic.co/groups/elastic_team) Please help me out

---

<div class="post-metadata">

### Author: ![nkf\_123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nkf_123/32/125692_2.png) [@nkf\_123](https://discuss.elastic.co/u/nkf_123)
#### Post date: [March 18, 2024, 10:54am UTC](https://discuss.elastic.co/t/special-character-search-on-kibana-search-bar/355147/5 "2024-03-18T10:54:49Z")

</div>

@Priscilla_Parodi  
os.log.message is of type: text.  
I need to maintain it as type - text.

What is strange is that the analyzer picks the # value due to whitespace tokenizer but it fails to search for it in kibana search bar

---

<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: [April 15, 2024, 10:55am UTC](https://discuss.elastic.co/t/special-character-search-on-kibana-search-bar/355147/6 "2024-04-15T10:55:16Z")

</div>

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