# Logstash is replacing : with =\> How can I get : on the output

**URL:** <https://discuss.elastic.co/t/logstash-is-replacing-with-how-can-i-get-on-the-output/186433>\
**Category:** Logstash\
**Created:** [June 19, 2019, 10:38am UTC](https://discuss.elastic.co/t/logstash-is-replacing-with-how-can-i-get-on-the-output/186433 "2019-06-19T10:38:43Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [June 19, 2019, 11:32am UTC](https://discuss.elastic.co/t/logstash-is-replacing-with-how-can-i-get-on-the-output/186433/6 "2019-06-19T11:32:21Z")

</div>

Hi @Raj_Sekhar,

You need to add this in your logstash configuration file which is in /conf.d/ directory.

There are three section in conf file Input, Filter and Output. You need to add this in filter section.

Please find document link for filter ruby plugin.

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

Also, i found a discussion for similar problem. You can look into this and can get more idea about filter plugin.

> [@JSON parsing problem](https://discuss.elastic.co/t/json-parsing-problem/166413):
>
> Hi there! My target is very simple (as it seems): I want logstash to receive a json from http, process this json with some scrypt, and bypass it as json next. I've started with json codec, but I've not found any way to properly access the root of event object, so I could not get the whole json content. So, I saw this [How to read JSON input sent to Http input plugin in filter section](https://discuss.elastic.co/t/how-to-read-json-input-sent-to-http-input-plugin-in-filter-section/118090) topic and tried to make config like in the answer. Let's say I've this config now: input { http { id =\> …

File in the command is /tmp/test.json.

Please do let me know if you need more help in this regard.

Regards,  
Harsh Bajaj

---

_[View the full topic](https://discuss.elastic.co/t/logstash-is-replacing-with-how-can-i-get-on-the-output/186433)._
