# Delete fields in events

**URL:** <https://discuss.elastic.co/t/delete-fields-in-events/82888>\
**Category:** Logstash\
**Created:** [April 19, 2017, 12:48pm UTC](https://discuss.elastic.co/t/delete-fields-in-events/82888 "2017-04-19T12:48:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jagadeeswar\_Reddy](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jagadeeswar\_Reddy](https://discuss.elastic.co/u/jagadeeswar_Reddy)\
**Post date:** [April 19, 2017, 12:48pm UTC](https://discuss.elastic.co/t/delete-fields-in-events/82888/1 "2017-04-19T12:48:30Z")

</div>

Hello All,

could you please help us to get the desire out put my logs usign the logstash groke filter

My Logformat id :"Apr 17 15:20:01 wiki-jira CROND[8769]: (root) CMD (/usr/lib64/sa/sa1 1 1)"

I want get the out as " CMD (/usr/lib64/sa/sa1 1 1)" ..

I tried the several ways but no luck to me .. Pleasae suggest us how to do ?

thanks  
jagdish

---

<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:** [April 20, 2017, 5:13am UTC](https://discuss.elastic.co/t/delete-fields-in-events/82888/2 "2017-04-20T05:13:26Z")

</div>

Have you looked at the syslog example in the documentation?

[https://www.elastic.co/guide/en/logstash/current/config-examples.html](https://www.elastic.co/guide/en/logstash/current/config-examples.html)

---

<div class="post-metadata">

**Author:** ![pablosan](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@pablosan](https://discuss.elastic.co/u/pablosan)\
**Post date:** [April 20, 2017, 7:59am UTC](https://discuss.elastic.co/t/delete-fields-in-events/82888/3 "2017-04-20T07:59:01Z")

</div>

And try this!  
[http://grokconstructor.appspot.com/](http://grokconstructor.appspot.com/)  
I came up with that in 1 min. You can use the mutate filter to remove fields  
%{CISCOTIMESTAMP}%{SPACE}%{NOTSPACE}%{CRON\_ACTION}%{NOTSPACE}%{SPACE}%{NOTSPACE}%{CRON\_ACTION}%{GREEDYDATA:your\_field}

---

<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:** [May 18, 2017, 8:07am UTC](https://discuss.elastic.co/t/delete-fields-in-events/82888/4 "2017-05-18T08:07:34Z")

</div>

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