# Certain fields in "drop\_fields" are not dropped

**URL:** <https://discuss.elastic.co/t/certain-fields-in-drop-fields-are-not-dropped/355679>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 19, 2024, 6:07am UTC](https://discuss.elastic.co/t/certain-fields-in-drop-fields-are-not-dropped/355679 "2024-03-19T06:07:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hjazz6](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hjazz6/32/79007_2.png) [@hjazz6](https://discuss.elastic.co/u/hjazz6)\
**Post date:** [March 19, 2024, 6:07am UTC](https://discuss.elastic.co/t/certain-fields-in-drop-fields-are-not-dropped/355679/1 "2024-03-19T06:07:26Z")

</div>

Hi,

I'm trying to drop certain fields using filebeat's `drop_fields` processor, so that they will not be indexed to my Elasticsearch. I'm using version 8.8.0 for both filebeat and elasticsearch.

Most of the fields specified in the `drop_fields` array are dropped, but a few are not, e.g. `source.geo.city_name`, `destination.geo.location.lon`, and `network.direction`. Except for `network.direction`, all the field names that were dropped only have one period in them, e.g. `abc.def`.

A portion of the relevant configuration in `filebeat.yml` is

```auto
processors:
    - drop_fields:
          fields: ["destination.bytes", "destination.geo.location.lon", "ecs.version", "source.bytes", "source.geo.city_name", "network.direction", "source.packets"]

```

Why are some of these fields not dropped?

Thank you.

---

<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:** [April 16, 2024, 8:08am UTC](https://discuss.elastic.co/t/certain-fields-in-drop-fields-are-not-dropped/355679/2 "2024-04-16T08:08:09Z")

</div>

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