Elasticsearch - ELK Stack Integration
A user tries to monitor disk usage but gets an error:
The error says 'fielddata is disabled on text fields'. What is the best fix?
GET /metrics/_search
{
"query": {
"match": { "disk_usage": "high" }
},
"aggs": {
"avg_disk": {
"avg": {
"field": "disk_usage"
}
}
}
}The error says 'fielddata is disabled on text fields'. What is the best fix?
