Change mapping for Metricbeat percentages from long to double

I have an issue where percentages don't allow for sorting on some percentages, because they're long and no doubles. The percentages are as 0.23, 0.87.

curl -XGET "http://127.0.0.1:9200/metricbeat-2018.03.07/_mapping/doc

"system" : {
  "properties" : {
    "core" : {
      "properties" : {
        "id" : {
          "type" : "long"
        },
        "idle" : {
          "properties" : {
            "pct" : {
              "type" : "double"
            }
          }
        },
        "iowait" : {
          "properties" : {
            "pct" : {
              "type" : "long"
            }
          }
        },

Percentages that are doubles sort fine, but percentages that are longs don't sort.

I'd like to change the mappings on the new metricbeat-indices for percentages from long to double. How could I do this?

The metricbeat-template is almost empty, so I am not sure what populates the mappings of metricbeat.

We're using Metricbeat 6.2.2 and ElasticSearch 2.4

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