# How to search with special character in search bar

**URL:** <https://discuss.elastic.co/t/how-to-search-with-special-character-in-search-bar/253572>\
**Category:** Kibana\
**Created:** [October 28, 2020, 1:59pm UTC](https://discuss.elastic.co/t/how-to-search-with-special-character-in-search-bar/253572 "2020-10-28T13:59:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![beam5544](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/beam5544/32/78013_2.png) [@beam5544](https://discuss.elastic.co/u/beam5544)\
**Post date:** [October 28, 2020, 1:59pm UTC](https://discuss.elastic.co/t/how-to-search-with-special-character-in-search-bar/253572/1 "2020-10-28T13:59:57Z")

</div>

Now, I already have data "reqBody" in String format ... but it look like JSON somehow.

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

FYI,

```auto
{"masterStagingId":"PAYROLL72e6972d84b047af88e62258dbaea998","paymentProductId":"PAYROLL","batchReferenceId":"PAY201028df78fa27a86","scheduleMainId":null,"scheduleDetailId":null,"isLastSchedule":null,"batchStatus":"PROCESSING","isBatchStatusFinal":false,"isDebited":false}

```

I want to search the data with special charcter (like " : , ) in search bar like this

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

How can I ?

---

<div class="post-metadata">

**Author:** ![dosant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dosant/32/64489_2.png) [@dosant](https://discuss.elastic.co/u/dosant)\
**Post date:** [October 30, 2020, 12:19pm UTC](https://discuss.elastic.co/t/how-to-search-with-special-character-in-search-bar/253572/2 "2020-10-30T12:19:26Z")

</div>

Hi @beam5544,

You should be able to escape special characters with `\`

```auto
reqBody *\"batchStatus\"\:\"PROCESSING\"*

```

---

<div class="post-metadata">

**Author:** ![beam5544](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/beam5544/32/78013_2.png) [@beam5544](https://discuss.elastic.co/u/beam5544)\
**Post date:** [November 2, 2020, 3:36am UTC](https://discuss.elastic.co/t/how-to-search-with-special-character-in-search-bar/253572/3 "2020-11-02T03:36:08Z")

</div>

Hi @dosant

For your answer below,

> [@dosant](#):
>
> Hi @beam5544,
> 
> You should be able to escape special characters with `\`
> 
> ```auto
> reqBody *\"batchStatus\"\:\"PROCESSING\"*
> 
> ```

Result is this

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

and this

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/9/a9ae0be61f4758002b4dc4ff6c98d64400069e84.png)

I swear this have a data during my setting time search.

---

<div class="post-metadata">

**Author:** ![dosant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dosant/32/64489_2.png) [@dosant](https://discuss.elastic.co/u/dosant)\
**Post date:** [November 2, 2020, 10:46am UTC](https://discuss.elastic.co/t/how-to-search-with-special-character-in-search-bar/253572/4 "2020-11-02T10:46:22Z")

</div>

Just tried without `*` and seems to be working:

```auto
reqBody: "\"batchStatus\"\:\"PROCESSING\""

```

 ![Screenshot 2020-11-02 at 11.42.39](https://us1.discourse-cdn.com/elastic/original/3X/e/0/e01e90f8fbe3f7836d3c6504c1fbec3204176804.png)

---

<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:** [November 30, 2020, 10:46am UTC](https://discuss.elastic.co/t/how-to-search-with-special-character-in-search-bar/253572/5 "2020-11-30T10:46:23Z")

</div>

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