# Access original, un-decoded input message

**URL:** <https://discuss.elastic.co/t/access-original-un-decoded-input-message/248100>\
**Category:** Logstash\
**Created:** [September 10, 2020, 3:24am UTC](https://discuss.elastic.co/t/access-original-un-decoded-input-message/248100 "2020-09-10T03:24:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![truekonrads](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/truekonrads/32/28104_2.png) [@truekonrads](https://discuss.elastic.co/u/truekonrads)\
**Post date:** [September 10, 2020, 3:24am UTC](https://discuss.elastic.co/t/access-original-un-decoded-input-message/248100/1 "2020-09-10T03:24:45Z")

</div>

Hello,

How can I access the original input message before it was decoded so that I can refer to it from filter or output?

The setup is as follows:

1. I am reading JSON from rabbitmq; the default codec is json and it breaks the message into fields (which is what I want).
2. I am doing some basic transformation such as date matching on the extracted
3. On output, I would like to take the original, un-decoded JSON value and insert as one of output fields.

How do I access that original input?

---

<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:** [September 10, 2020, 3:04pm UTC](https://discuss.elastic.co/t/access-original-un-decoded-input-message/248100/2 "2020-09-10T15:04:18Z")

</div>

> [@truekonrads](#):
>
> How do I access that original input?

Do not use a json codec, use a json filter instead.

---

<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:** [October 8, 2020, 3:04pm UTC](https://discuss.elastic.co/t/access-original-un-decoded-input-message/248100/3 "2020-10-08T15:04:34Z")

</div>

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