# Graylog hide fields of log

**URL:** <https://community.graylog.org/t/graylog-hide-fields-of-log/10135>\
**Category:** Graylog Central (peer support)\
**Created:** [April 25, 2019, 8:24pm UTC](https://community.graylog.org/t/graylog-hide-fields-of-log/10135 "2019-04-25T20:24:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![marinsokol5](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@marinsokol5](https://community.graylog.org/u/marinsokol5)\
**Post date:** [April 25, 2019, 8:24pm UTC](https://community.graylog.org/t/graylog-hide-fields-of-log/10135/1 "2019-04-25T20:24:30Z")

</div>

Is there any way to hide fields in logs like pid, source, process\_name, thread\_name… actually all I need is my message field.  
I know that these fields are what Graylog is all about but I was planning on using a JSON extractor on my message and showing only my json fields when I click to expand the log.

---

<div class="post-metadata">

**Author:** ![megan201296](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/megan201296/32/2847_2.png) [@megan201296](https://community.graylog.org/u/megan201296)\
**Post date:** [April 26, 2019, 10:36pm UTC](https://community.graylog.org/t/graylog-hide-fields-of-log/10135/2 "2019-04-26T22:36:14Z")

</div>

You can use a pipeline rule to drop the fields you don’t want using the [http://docs.graylog.org/en/3.0/pages/pipelines/functions.html#remove-field](http://docs.graylog.org/en/3.0/pages/pipelines/functions.html#remove-field) function.

---

<div class="post-metadata">

**Author:** ![marinsokol5](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@marinsokol5](https://community.graylog.org/u/marinsokol5)\
**Post date:** [April 27, 2019, 12:01am UTC](https://community.graylog.org/t/graylog-hide-fields-of-log/10135/3 "2019-04-27T00:01:05Z")

</div>

Thanks a lot, that is exactly what I was looking for.  
It seems like I cant remove the field “source” though am I doing something wrong.

---

<div class="post-metadata">

**Author:** ![megan201296](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/megan201296/32/2847_2.png) [@megan201296](https://community.graylog.org/u/megan201296)\
**Post date:** [April 27, 2019, 1:24am UTC](https://community.graylog.org/t/graylog-hide-fields-of-log/10135/4 "2019-04-27T01:24:11Z")

</div>

If I recall correctly, you cannot remove the source field. Though I could be a wrong there. Someone else can maybe chime in.

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [April 29, 2019, 10:02am UTC](https://community.graylog.org/t/graylog-hide-fields-of-log/10135/5 "2019-04-29T10:02:24Z")

</div>

it is right - removing `source` is not possible. but you are able to set it to any value you like.

---

<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:** [May 13, 2019, 10:16am UTC](https://community.graylog.org/t/graylog-hide-fields-of-log/10135/6 "2019-05-13T10:16:36Z")

</div>

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