# How to remove field with logstash5.0.2?

**URL:** https://discuss.elastic.co/t/how-to-remove-field-with-logstash5-0-2/68290
**Category:** Logstash
**Created:** [December 7, 2016, 11:23am UTC](https://discuss.elastic.co/t/how-to-remove-field-with-logstash5-0-2/68290 "2016-12-07T11:23:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kaybinwong](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@kaybinwong](https://discuss.elastic.co/u/kaybinwong)
#### Post date: [December 7, 2016, 11:23am UTC](https://discuss.elastic.co/t/how-to-remove-field-with-logstash5-0-2/68290/1 "2016-12-07T11:23:40Z")

</div>

i remove field be by the below way, but it seems to remove all the event, what‘s the different when using remove\_field between drop and grok?  
**remove all the event**

 ![](https://us1.discourse-cdn.com/elastic/original/2X/0/099af33a3cedb5ba81667f969954405ed73d0fd1.png)  
**work**  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/8/8daaa58d0098ec47cf0e703ded16cd73f67fb210.png)

---

<div class="post-metadata">

### Author: ![jeslopalo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeslopalo/32/13675_2.png) [@jeslopalo](https://discuss.elastic.co/u/jeslopalo)
#### Post date: [December 7, 2016, 11:31am UTC](https://discuss.elastic.co/t/how-to-remove-field-with-logstash5-0-2/68290/2 "2016-12-07T11:31:46Z")

</div>

If you read the docs, **drop** drops everything that gets to this filter -\> [https://www.elastic.co/guide/en/logstash/current/plugins-filters-drop.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-drop.html)

You can remove fields in any filter.

```
mutate {
   remove_field => ["message"]
}
```

---

<div class="post-metadata">

### Author: ![kaybinwong](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@kaybinwong](https://discuss.elastic.co/u/kaybinwong)
#### Post date: [December 7, 2016, 12:12pm UTC](https://discuss.elastic.co/t/how-to-remove-field-with-logstash5-0-2/68290/3 "2016-12-07T12:12:50Z")

</div>

ths, i miss it when i read the doc...

---

<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: [January 4, 2017, 12:12pm UTC](https://discuss.elastic.co/t/how-to-remove-field-with-logstash5-0-2/68290/4 "2017-01-04T12:12:50Z")

</div>

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