Kibana 7.5.2 / Ubantu 18.04 - tag not showing up under buckets. Is tags cloud needed

Hi,

I have a Java spring boot 2 application and micrometer is configured to log application metrics into elastic stack. Metrics and associated data from the application is getting logged in elastic stack however when trying to create visualization for CPU usage by the application not able to select tag (host) under Buckets.

Without having tag in buckets, not able to create a visualization to show how much CPU is utilized by the application.

Tag (host) can be seen in documents indexed by elastic search and same index is used for creating visualization.

OS:
Ubuntu 18.04 / 64bit
Kibana 7.5.2

  1. Any idea or pointer why I do not see tag in Buckets
  2. If need to create a simple visualization for CPU utilization by an application, how could I do it

Please advice what I could be missing.

Thanks,
Sachin

To use a field in a bucket aggregation it has to be of type "keyword" - your field is probably mapped as "text". If you are using the default mappings, there should be a host.keyword field which contains the keyword indexed version of the host field. If not you have to adjust your mapping to include a keyword indexed version of host and re-index your existing data. Reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/keyword.html

Thank you Joe for the explanation. Earlier the host.keyword field did not appear in mapping however it is fixed now.

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