I have Elasticsearch installed with 16GB of memory. I started using aggregation, but ran into the error "java.lang.OutOfMemoryError: Java heap space" when I tried to execute the following query:
POST /test-index-syslog3/type-syslog/_search { "query": { "query_string": { "default_field": "DstCountry", "query": "CN" } }, "aggs": { "whatever": { "terms": { "field" : "SrcIP" }, "aggs": { "destination_ip": { "terms": { "field" : "DstIP" }, "aggs": { "port" : { "terms": { "field" : "DstPort" } } } } } } } }
The query_string line itself only returns 1266 hits, so I'm a bit confused by the OOM error.
Am I using aggregations incorrectly? If not, what can I do to fix this problem? Thanks!
Sgt b source share