S
S
Sword_Dancer2018-05-23 17:03:43
elasticsearch
Sword_Dancer, 2018-05-23 17:03:43

How to get data from Kibana with filter by timestamp and field match?

Please tell me, upon request to Kibana - you need to get all records with the "bounced" status, whose timestamp is greater than a certain date. For a field, @ timestamp works, but I just need a timestamp.
Thanks in advance!

GET log*/_search?size=10000
{
    "query": {
        "bool": {
            "must": [
                {
                    "match": {
                        "status": "bounced"
                    }
                },
                {
                    "range": {
                        "timestamp": {
                            "format": "yyyy-MM-dd HH:mm:ss",
                            "gte": "2018-05-23 13:20:02"
                        }
                    }
                }
            ]
        }
    }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question