Thanks all for replying. So I do have a ton of data so term aggregation may stress the cluster a ton. the current mapping of the fields and I am trying to make the text fields “action” and “taker” as aggretable :
{
"index_patterns": [
"kubernetes-*"
],
"template": {
"settings": {
"index.number_of_shards": "32",
"index.number_of_replicas": "1",
"index.mapping.ignore_malformed": "true"
},
"mappings": {
"dynamic": false,
"properties": {
"dd": {
"dynamic": true,
"type": "object"
},
"kubernetes": {
"properties": {
"container_name": {
"type": "keyword"
},
"container_hash": {
"type": "keyword"
},
"host": {
"type": "keyword"
},
"docker_id": {
"type": "keyword"
},
"pod_id": {
"type": "keyword"
},
"container_image": {
"type": "keyword"
},
"labels": {
"dynamic": true,
"type": "object"
},
"namespace_name": {
"type": "keyword"
},
"pod_name": {
"type": "keyword"
}
}
},
"exc_info": {
"type": "text"
},
"log": {
"type": "text"
},
"dns": {
"dynamic": true,
"type": "object"
},
"collection": {
"type": "keyword"
},
"message": {
"type": "text"
},
"error": {
"type": "text"
},
"collection_id": {
"type": "integer"
},
"app_context": {
"dynamic": true,
"type": "object"
},
"application_name": {
"type": "keyword"
},
"filename": {
"type": "keyword"
},
"lineno": {
"type": "keyword"
},
"relayId": {
"type": "keyword"
},
"stream": {
"type": "keyword"
},
"revert_reason": {
"type": "keyword"
},
"name": {
"type": "keyword"
},
"action": {
"type": "keyword"
},
"payment": {
"dynamic": true,
"type": "object"
},
"taker": {
"type": "keyword"
},
"levelname": {
"type": "keyword"
},
"queue": {
"type": "keyword"
},
"event_handler": {
"type": "keyword"
}
}
}
},
"composed_of": [],
"priority": 1,
"data_stream": {
"timestamp_field": {
"name": "@timestamp"
}
},
"name": "kubernetes-logs"
}