# How to omit filebeat fields such as source file path?

**URL:** <https://discuss.elastic.co/t/how-to-omit-filebeat-fields-such-as-source-file-path/66977>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 23, 2016, 1:18pm UTC](https://discuss.elastic.co/t/how-to-omit-filebeat-fields-such-as-source-file-path/66977 "2016-11-23T13:18:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oozza](https://avatars.discourse-cdn.com/v4/letter/o/76d3ee/32.png) [@Oozza](https://discuss.elastic.co/u/Oozza)\
**Post date:** [November 23, 2016, 1:18pm UTC](https://discuss.elastic.co/t/how-to-omit-filebeat-fields-such-as-source-file-path/66977/1 "2016-11-23T13:18:25Z")

</div>

Hi,  
Can filebeat be configured to don't ship it's own fields such as [beat.name](http://beat.name), beat.version, source, offset?

I have found older topic asking this thing here: [Simplifying Filebeat JSON Output Format](https://discuss.elastic.co/t/simplifying-filebeat-json-output-format/48085) suggesting use of filter, but I can't find any documentation about it and it seems to not work in Filebeat 5.0

I am using filebeat to ship JSON formatted log lines into Elastic Search. This is my configuration:

```
filebeat.prospectors:
- input_type: log
  paths: 
    -C:\...\logs\*
  json.message_key: Timestamp
  json.keys_under_root: true

  #This was the suggested way          
  #filter:
  # - include_fields.fields: ["message"]
```

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [November 23, 2016, 3:14pm UTC](https://discuss.elastic.co/t/how-to-omit-filebeat-fields-such-as-source-file-path/66977/2 "2016-11-23T15:14:46Z")

</div>

It works. The processor documentation is [here](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-processors.html) for Filebeat 5.x. Here's an example.

```auto
filebeat.prospectors:
- paths: [input.test]

output.console.pretty: true

processors:
  - drop_fields.fields: [beat, source, offset]

```

---

<div class="post-metadata">

**Author:** ![Oozza](https://avatars.discourse-cdn.com/v4/letter/o/76d3ee/32.png) [@Oozza](https://discuss.elastic.co/u/Oozza)\
**Post date:** [November 24, 2016, 7:13am UTC](https://discuss.elastic.co/t/how-to-omit-filebeat-fields-such-as-source-file-path/66977/3 "2016-11-24T07:13:41Z")

</div>

Thank you!

Compared with the earlier topic Processor: is the keyword instead of Filter:

---

<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 22, 2016, 7:13am UTC](https://discuss.elastic.co/t/how-to-omit-filebeat-fields-such-as-source-file-path/66977/4 "2016-12-22T07:13:58Z")

</div>

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