# Delete fields in message

**URL:** <https://community.graylog.org/t/delete-fields-in-message/12222>\
**Category:** Graylog Central (peer support)\
**Created:** [October 3, 2019, 11:51am UTC](https://community.graylog.org/t/delete-fields-in-message/12222 "2019-10-03T11:51:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uporaba](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/uporaba/32/11232_2.png) [@Uporaba](https://community.graylog.org/u/Uporaba)\
**Post date:** [October 3, 2019, 11:51am UTC](https://community.graylog.org/t/delete-fields-in-message/12222/1 "2019-10-03T11:51:30Z")

</div>

How do I remove fields from a message? I have an extractor for the message field. Through pipelines does not exit.

---

<div class="post-metadata">

**Author:** ![rajnishtyagi](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@rajnishtyagi](https://community.graylog.org/u/rajnishtyagi)\
**Post date:** [October 4, 2019, 4:24am UTC](https://community.graylog.org/t/delete-fields-in-message/12222/2 "2019-10-04T04:24:09Z")

</div>

I do it with pipeline, here is my pipeline sample. please make sure to attach them with all\_stream or any specific stream which you use for logs

```
rule "Remove additional fields"

when

    is_not_null("foo")

then

    remove_field("facility");

     remove_field("msg");

end
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [October 18, 2019, 4:24am UTC](https://community.graylog.org/t/delete-fields-in-message/12222/3 "2019-10-18T04:24:14Z")

</div>

Closed on October 18, 2019, 4:24am UTC

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