I have the next error: Expected [START_OBJECT] under [fields], but got a [START_ARRAY] in [statistics]
The elasticsearch query:
body={"query":{"bool":{"must":[{"range":{"@timestamp":{"lte":"2022-03-24T09:25:15.000-03:00","gte":"2022-03-23T09:25:15.000-03:00"}}},{"match":{"type.keyword":"TABLE"}},{"match":{"HOSTNAME.keyword": "EQUIPO"}}],}},"aggs":{"statistics":{"fields":["COLUMN1","COLUMN2"]}}}
I expected to get correlation statistics between COLUMN1 and COLUMN2