I´m trying to use this one in Kibana discover but it expects some other format i think.
Error: Discover: Expected "*", ":", "<", "<=", ">", ">=", "", [\ \t\r\n] or end of input but """ found
The query looks like this:
{   "size":0,
    "query": {
        "range": {
            "mainBattery": {
                "lte": 89,
                "gte": 80
            }
        }
    },
    "collapse": {
        "field": "mac.keyword"
    },
    "sort": [
        {
            "timestamp": "desc"
        }
    ],
    "aggs": {
        "result_count": {
            "cardinality": {
                "field": "mac.keyword"
            }
        }
    }
}
Is it possible? In other words how can i perform this query in discover ?`Later i want to use the query incl. aggs in Visualization.