# Filters in logstash for ELK

**URL:** <https://discuss.elastic.co/t/filters-in-logstash-for-elk/98995>\
**Category:** Logstash\
**Created:** [August 31, 2017, 11:55am UTC](https://discuss.elastic.co/t/filters-in-logstash-for-elk/98995 "2017-08-31T11:55:32Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![ashesh-singh8](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@ashesh-singh8](https://discuss.elastic.co/u/ashesh-singh8)\
**Post date:** [September 19, 2017, 2:47pm UTC](https://discuss.elastic.co/t/filters-in-logstash-for-elk/98995/28 "2017-09-19T14:47:43Z")

</div>

To get the whole request urldecoded use `urldecode` filter plugin

> **[Urldecode filter plugin | Logstash Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-filters-urldecode.html)**

You can also see this thread for a ruby implementation

> [@How to urldecode %uXXXX type of strings?](https://discuss.elastic.co/t/how-to-urldecode-uxxxx-type-of-strings/27718):
>
> I needed a javascript equivalent of unescape in logstash. I know %uXXXX is not standard but this is still quite common. A lot of our users' browsers send urls in this format. I am reserving the use of ruby filter in logstash to decode this type of url as the last resort. Before that, I am looking for a less heavy solution. Thanks for any suggestions.

After this if any specific character you need to replace then apply separate gsub for each.

---

_[View the full topic](https://discuss.elastic.co/t/filters-in-logstash-for-elk/98995)._
