Skip to content

Instantly share code, notes, and snippets.

@JohannesBertens
Last active September 18, 2016 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohannesBertens/8e3a61a84c7ed071840b1d1443009a52 to your computer and use it in GitHub Desktop.
Save JohannesBertens/8e3a61a84c7ed071840b1d1443009a52 to your computer and use it in GitHub Desktop.
Elasticsearch DSL Query
GET /logstash-*/_search
{
   "_source": ["@timestamp", "container_name", "host", "message"],
   "sort" : [
        { "@timestamp" : {"order" : "desc"}}
    ],
    "query": {
        "match" : {
            "message" : {
                "query" : "active",
                "operator" : "and"
            }
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment