# How would be filter plugin for this desired output

**URL:** <https://discuss.elastic.co/t/how-would-be-filter-plugin-for-this-desired-output/280301>\
**Category:** Logstash\
**Created:** [August 3, 2021, 10:25am UTC](https://discuss.elastic.co/t/how-would-be-filter-plugin-for-this-desired-output/280301 "2021-08-03T10:25:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srujan\_L](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/srujan_l/32/79231_2.png) [@Srujan\_L](https://discuss.elastic.co/u/Srujan_L)\
**Post date:** [August 3, 2021, 10:25am UTC](https://discuss.elastic.co/t/how-would-be-filter-plugin-for-this-desired-output/280301/1 "2021-08-03T10:25:34Z")

</div>

my input file looks like

```auto
{"msg1":"\"abcd\" : \"msg2\""}
{"msg1":"\"Dhhdk\" : \"msg3\""}
{"msg1":"\"Djskdh\" : \"msg2\""}
{"msg1":"\"ksgdh\" : \"msg\""}
{"msg1":"\"hxvdb\" : \"msg\""}

```

my desired output should be like

```auto
{
"abcd" : "msg2",
"Dhhdk" : "msg3",
"Djskdh" : "msg2",
"ksgdh" : "msg",
"hxvdb" : "msg",
}

```

how filter plugin would be for this output?

---

<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:** [August 31, 2021, 10:26am UTC](https://discuss.elastic.co/t/how-would-be-filter-plugin-for-this-desired-output/280301/2 "2021-08-31T10:26:00Z")

</div>

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