# Keep raw syslog event untampered

**URL:** <https://discuss.elastic.co/t/keep-raw-syslog-event-untampered/58053>\
**Category:** Logstash\
**Created:** [August 15, 2016, 6:10pm UTC](https://discuss.elastic.co/t/keep-raw-syslog-event-untampered/58053 "2016-08-15T18:10:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaykumar](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@jaykumar](https://discuss.elastic.co/u/jaykumar)\
**Post date:** [August 15, 2016, 6:10pm UTC](https://discuss.elastic.co/t/keep-raw-syslog-event-untampered/58053/1 "2016-08-15T18:10:26Z")

</div>

Hi There,

I have Logstash config with few groks to rename fields, make values human readable, geoip, and few more stuffs. I would like to make two outputs:

1. Raw compressed file with untampered, this means it must not include any of the filters
2. Elasticsearch output after applying all filters

Can anyone please help me here?

Regards,

Ajay

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 15, 2016, 8:19pm UTC](https://discuss.elastic.co/t/keep-raw-syslog-event-untampered/58053/2 "2016-08-15T20:19:34Z")

</div>

Use a clone filter to split each event in two. Use conditionals to apply your filters to one of the events and similarly to send them to different inputs.

---

<div class="post-metadata">

**Author:** ![jaykumar](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@jaykumar](https://discuss.elastic.co/u/jaykumar)\
**Post date:** [August 16, 2016, 6:09am UTC](https://discuss.elastic.co/t/keep-raw-syslog-event-untampered/58053/3 "2016-08-16T06:09:52Z")

</div>

Yes this should meet the requirement. Thank you.

---

<div class="post-metadata">

**Author:** ![jaykumar](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@jaykumar](https://discuss.elastic.co/u/jaykumar)\
**Post date:** [August 16, 2016, 6:39am UTC](https://discuss.elastic.co/t/keep-raw-syslog-event-untampered/58053/4 "2016-08-16T06:39:23Z")

</div>

Just now tested. This works as expected.  
Once again thank you for this quick help.

---

<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:** [July 6, 2017, 4:43am UTC](https://discuss.elastic.co/t/keep-raw-syslog-event-untampered/58053/5 "2017-07-06T04:43:23Z")

</div>


