I am ingesting data from metricbeat to elasticsearch and loading the dashboards of version metricbeat 8.10.3 with the command "./metricbeat setup --dashboard" but when viewing the dashboards it shows a warning:
Shard
0
Index
metricbeat-8.10.3-2023.11.29
Type
illegal_argument_exception
Node
TzlnKYr2SluYz1O-f9M8lg
Reason
Fielddata is disabled on [host.name] in [metricbeat-8.10.3-2023.11.29]. Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [host.name] in order to load field data by uninverting the inverted index. Note that this can use significant memory.
But when I see my template the value "host.name" is keyword, I loaded the template with the command "./metricbeat setup --index-management"
I performed the steps you suggested but I receive the same error when entering the dashboard again:
Shard
0
Index
metricbeat-8.10.3-2023.11.29
Type
illegal_argument_exception
Node
L9pncMC4QeSlR85fKLS9eQ
Reason
Fielddata is disabled on [host.name] in [metricbeat-8.10.3-2023.11.29]. Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [host.name] in order to load field data by uninverting the inverted index. Note that this can use significant memory.
Delete the index and then run the command "./metricbeat setup -e", do you have any other reason?
Something strange that I saw is that when creating the template I could see that it has two hostname attributes but named differently, I attach an image
Returns the fields "host.name" and "host.hostname" as keyword, I did not modify that part. I have tried to eliminate indexes and templates but it has not worked.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.