# Remove unnecessary apm fields

**URL:** <https://discuss.elastic.co/t/remove-unnecessary-apm-fields/193231>\
**Category:** APM\
**Created:** [July 31, 2019, 11:49pm UTC](https://discuss.elastic.co/t/remove-unnecessary-apm-fields/193231 "2019-07-31T23:49:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hong\_Phuoc\_Cao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hong_phuoc_cao/32/51288_2.png) [@Hong\_Phuoc\_Cao](https://discuss.elastic.co/u/Hong_Phuoc_Cao)\
**Post date:** [July 31, 2019, 11:49pm UTC](https://discuss.elastic.co/t/remove-unnecessary-apm-fields/193231/1 "2019-07-31T23:49:21Z")

</div>

Hello team,

Apm agent inserts to Elasticsearch many fields that I don't need, is there any way to remove those fields?

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [August 1, 2019, 1:55am UTC](https://discuss.elastic.co/t/remove-unnecessary-apm-fields/193231/2 "2019-08-01T01:55:18Z")

</div>

Hi @Hong_Phuoc_Cao,

You have a couple of options:

- Define an ingest node pipeline: [https://www.elastic.co/guide/en/apm/server/current/configuring-ingest-node.html](https://www.elastic.co/guide/en/apm/server/current/configuring-ingest-node.html). In the pipeline you could use the [remove processor](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/remove-processor.html) to remove fields you're not interested in.
- Define processors in the APM Server configuration: [https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html). Similar to above, you could use [drop\_fields](https://www.elastic.co/guide/en/beats/filebeat/current/drop-fields.html).

Out of curiosity, which of the fields that you are not interested in?

---

<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:** [August 21, 2019, 9:55pm UTC](https://discuss.elastic.co/t/remove-unnecessary-apm-fields/193231/3 "2019-08-21T21:55:19Z")

</div>

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