In am getting the following error in Kibana when I try to load my visualization.
Visualize: Fielddata is disabled on text fields by default. Set fielddata=true on [beat.name] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory.
So I tried adding unanalyzed keyword field with doc_values enabled for aggregations as per this LINK.
Since I am creating daily index I created a template:
PUT /_template/template_metricbeat_1
{
"template": "*metricbeat*",
"order": 1,
"settings": {
"number_of_shards": 5,
"number_of_replicas": 1,
"refresh_interval": "30s"
},
"mappings": {
"metricsets": {
"properties": {
"beat.name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
}
}
}
}
}
But I have around fifty text field that would be used in creating visualization.
So my question is how do I add unanalyzed keyword field with all my fifty text field in one go?
beat.name
field is alreadykeyword
there: github.com/elastic/beats/blob/v5.3.0/metricbeat/… – Andrei Stefan