# I am getting Malformed Escape Escape at Index error in logstash logs for http url. How to resolve it?

**URL:** <https://discuss.elastic.co/t/i-am-getting-malformed-escape-escape-at-index-error-in-logstash-logs-for-http-url-how-to-resolve-it/363440>\
**Category:** Logstash\
**Created:** [July 19, 2024, 1:34pm UTC](https://discuss.elastic.co/t/i-am-getting-malformed-escape-escape-at-index-error-in-logstash-logs-for-http-url-how-to-resolve-it/363440 "2024-07-19T13:34:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shalu\_Bisht](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shalu_bisht/32/123759_2.png) [@Shalu\_Bisht](https://discuss.elastic.co/u/Shalu_Bisht)\
**Post date:** [July 19, 2024, 1:34pm UTC](https://discuss.elastic.co/t/i-am-getting-malformed-escape-escape-at-index-error-in-logstash-logs-for-http-url-how-to-resolve-it/363440/1 "2024-07-19T13:34:56Z")

</div>

I am getting Malformed Escape Escape at Index error in logstash logs for http url. How to resolve it ?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [July 19, 2024, 3:41pm UTC](https://discuss.elastic.co/t/i-am-getting-malformed-escape-escape-at-index-error-in-logstash-logs-for-http-url-how-to-resolve-it/363440/2 "2024-07-19T15:41:15Z")

</div>

Hello and welcome,

You need to share the logs you are getting, is not possible to know what may be the issue without the logs.

---

<div class="post-metadata">

**Author:** ![Shalu\_Bisht](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shalu_bisht/32/123759_2.png) [@Shalu\_Bisht](https://discuss.elastic.co/u/Shalu_Bisht)\
**Post date:** [July 22, 2024, 3:25am UTC](https://discuss.elastic.co/t/i-am-getting-malformed-escape-escape-at-index-error-in-logstash-logs-for-http-url-how-to-resolve-it/363440/3 "2024-07-22T03:25:12Z")

</div>

Hi,  
Here is one of the sample log from my application where i am getting Malformed escape error.

[ERROR] [logstash.filters.http] [pipeline id] error during HTTP request { : url =\> "https:://IP:Port/\_search?q=; : body=\> nil, :client\_error=\>"Malformed escape pair at index 63 :

But this error is not continuous. I am getting it very intermittently but unble to find reason for the same. Please support this is my production issue.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 22, 2024, 4:17am UTC](https://discuss.elastic.co/t/i-am-getting-malformed-escape-escape-at-index-error-in-logstash-logs-for-http-url-how-to-resolve-it/363440/4 "2024-07-22T04:17:11Z")

</div>

> [@Shalu\_Bisht](#):
>
> [ERROR] [logstash.filters.http] [pipeline id] error during HTTP request { : url =\> "https:://IP:Port/\_search?q=; : body=\> nil, :client\_error=\>"Malformed escape pair at index 63 :

This error is typically due to incorrect escaping within the URL. Clearly you have redacted the url in the error message so we cannot say what might be wrong with the 63rd character in it.

---

<div class="post-metadata">

**Author:** ![Shalu\_Bisht](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shalu_bisht/32/123759_2.png) [@Shalu\_Bisht](https://discuss.elastic.co/u/Shalu_Bisht)\
**Post date:** [July 23, 2024, 2:44am UTC](https://discuss.elastic.co/t/i-am-getting-malformed-escape-escape-at-index-error-in-logstash-logs-for-http-url-how-to-resolve-it/363440/5 "2024-07-23T02:44:53Z")

</div>

I will send the complete config and error logs once again.
