# Is it possible to get only the types of fields I want from metricbeat?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-get-only-the-types-of-fields-i-want-from-metricbeat/342770>\
**Category:** Beats\
**Tags:** elastic-stack-monitoring, metricbeat\
**Created:** [September 12, 2023, 1:08am UTC](https://discuss.elastic.co/t/is-it-possible-to-get-only-the-types-of-fields-i-want-from-metricbeat/342770 "2023-09-12T01:08:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![20wjsdudtj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/20wjsdudtj/32/124686_2.png) [@20wjsdudtj](https://discuss.elastic.co/u/20wjsdudtj)\
**Post date:** [September 12, 2023, 1:08am UTC](https://discuss.elastic.co/t/is-it-possible-to-get-only-the-types-of-fields-i-want-from-metricbeat/342770/1 "2023-09-12T01:08:45Z")

</div>

My metricbeat default field brings in too much unnecessary data. (For example, kubernetes. Kubernetes-related data such as pod.name, uid, namespace.., etc. There are only a few data I need. Can I specify and import this? Rather than importing it and processing it there. I keep getting an error because too many Docs count and too much storage disk has been used.

```auto
{
  "settings": {
    "index": {
      "mapping": {
        "total_fields": {
          "limit": "10000"
        }
      },
      "refresh_interval": "30s",
      "blocks": {
        "read_only_allow_delete": "true"
      },
      "provided_name": "<pororometrics-{now/d}-000001>",
      "query": {
        "default_field": [
          "message",
          "tags",
          "agent.ephemeral_id",
          "agent.id",
          "agent.name",
          "agent.type",
          "agent.version",
          "as.organization.name",
          "client.address",
          "client.as.organization.name",
          "client.domain",
          "client.geo.city_name",
          "client.geo.continent_name",
          "client.geo.country_iso_code",
          "client.geo.country_name",
          "client.geo.name",
          "client.geo.region_iso_code",
          "client.geo.region_name",
          "client.mac",
          "client.registered_domain",
          "client.top_level_domain",
          "client.user.domain",
           ...

```

---

<div class="post-metadata">

**Author:** ![miltonhultgren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/miltonhultgren/32/100401_2.png) [@miltonhultgren](https://discuss.elastic.co/u/miltonhultgren)\
**Post date:** [September 12, 2023, 7:34am UTC](https://discuss.elastic.co/t/is-it-possible-to-get-only-the-types-of-fields-i-want-from-metricbeat/342770/2 "2023-09-12T07:34:12Z")

</div>

There are a few options for you, but the main challenge is that most of them aim to exclude fields, rather than only include the fields you want.

For example you can use a Metricbeat processor to drop fields [Drop fields from events | Metricbeat Reference [8.9] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/current/drop-fields.html) or you can use an Ingest Pipeline in Elasticsearch to shape the document before it's saved [Remove processor | Elasticsearch Guide [8.9] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/remove-processor.html).

If you're using Elastic Agent, soon you'll have access to TSDS which can perform down sampling [Downsampling a time series data stream | Elasticsearch Guide [8.9] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/downsampling.html).  
Until then, your best options is probably to use an ILM policy to manage the size of your data [Tutorial: Automate rollover with ILM | Elasticsearch Guide [8.9] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-index-lifecycle-management.html).  
You might also consider creating rolls up of data if you don't need the same granularity but still want to retain the data [Rollup overview | Elasticsearch Guide [8.9] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-overview.html).

---

<div class="post-metadata">

**Author:** ![20wjsdudtj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/20wjsdudtj/32/124686_2.png) [@20wjsdudtj](https://discuss.elastic.co/u/20wjsdudtj)\
**Post date:** [September 12, 2023, 9:12am UTC](https://discuss.elastic.co/t/is-it-possible-to-get-only-the-types-of-fields-i-want-from-metricbeat/342770/3 "2023-09-12T09:12:43Z")

</div>

Thank you so much!! I'll include your feedback!

2023년 9월 12일 (화) 오후 4:44, Milton Hultgren via Discuss the Elastic Stack \<[notifications@elastic.discoursemail.com](mailto:notifications@elastic.discoursemail.com)\>님이 작성:

---

<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:** [October 10, 2023, 11:13am UTC](https://discuss.elastic.co/t/is-it-possible-to-get-only-the-types-of-fields-i-want-from-metricbeat/342770/4 "2023-10-10T11:13:08Z")

</div>

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