Metricbeat sent some data through logstash into opensearch. After first hit I set proper Index Pattern to read incoming data:
Everything looks fine until I want to create a vizualization (line chart or table) for this data:
Looks like there is some issue with this data format (?), however I tried to set this parameter as well as number but got the same result. What more I have to set to get proper chart for this data?
Okay, so the problem was automapping of that property. When I introduced a template before indices were created, the data looks fine.
GET _index_template/metricbeats-template
GET metricbeat-7.10.0-2023.03.09/_mapping/field/host.cpu.pct