# Delete syslog fields from logstream

**URL:** <https://discuss.elastic.co/t/delete-syslog-fields-from-logstream/157891>\
**Category:** Logstash\
**Created:** [November 22, 2018, 1:45pm UTC](https://discuss.elastic.co/t/delete-syslog-fields-from-logstream/157891 "2018-11-22T13:45:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gegi\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gegi_k/32/38376_2.png) [@Gegi\_K](https://discuss.elastic.co/u/Gegi_K)\
**Post date:** [November 22, 2018, 1:45pm UTC](https://discuss.elastic.co/t/delete-syslog-fields-from-logstream/157891/1 "2018-11-22T13:45:35Z")

</div>

Hi there,

Sorry if this question is being stupid, but I'm trying to get something weitrd working... the deal is I have some Firewalls which send some data to ElasticSearch via LogStash. all works fine, except the only format I can stream is Syslog format that shows up like tis on Elasticsearch:

{"host":"IP","message":"LOG-CONTENT","@timestamp":"2018-11-22T11:36:08.150Z","port":4954,"@version":"1"}

What I try to achieve is that I only get the LOG-CONTENT out of the whole string, and then use grok to parse the log content and make custom indexes via regex.

The latter I managed to get running, but I have a lot of exttra data with the Syslog format's fields like timestamp, host, port and so on. I have all this, but was not able to filter out just the message.

Any tipps are highly appreciated!

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Magnus\_Kessler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnus_kessler/32/42001_2.png) [@Magnus\_Kessler](https://discuss.elastic.co/u/Magnus_Kessler)\
**Post date:** [November 22, 2018, 2:01pm UTC](https://discuss.elastic.co/t/delete-syslog-fields-from-logstream/157891/2 "2018-11-22T14:01:55Z")

</div>

As part of your Logstash pipeline, you can remove unwanted fields, e.g. using the [`mutate` plugin](https://www.elastic.co/guide/en/logstash/current/plugins-filters-mutate.html#plugins-filters-mutate-remove_field).

---

<div class="post-metadata">

**Author:** ![Gegi\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gegi_k/32/38376_2.png) [@Gegi\_K](https://discuss.elastic.co/u/Gegi_K)\
**Post date:** [November 23, 2018, 7:27am UTC](https://discuss.elastic.co/t/delete-syslog-fields-from-logstream/157891/3 "2018-11-23T07:27:42Z")

</div>

Oh man... I was so focused on the removing of stuff, that I forgot about the actual plugin doing it... the mutate was missing... sorry for being derp... and many thanks for pointing to the right direction!

---

<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:** [December 21, 2018, 7:27am UTC](https://discuss.elastic.co/t/delete-syslog-fields-from-logstream/157891/4 "2018-12-21T07:27:48Z")

</div>

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