Skip to content

Instantly share code, notes, and snippets.

@aseques
Created March 16, 2016 08:58
Show Gist options
  • Select an option

  • Save aseques/48ebc8b03327076166ba to your computer and use it in GitHub Desktop.

Select an option

Save aseques/48ebc8b03327076166ba to your computer and use it in GitHub Desktop.
graylog query
{
"from": 0,
"size": 150,
"query": {
"bool": {
"must": {
"query_string": {
"query": "gl2_source_input:56d82de1f8fe7e034a8da1be levelname:WARN",
"allow_leading_wildcard": true
}
},
"filter": {
"bool": {
"must": {
"range": {
"timestamp": {
"from": "2016-03-16 00:37:37.066",
"to": "2016-03-16 08:37:37.066",
"include_lower": true,
"include_upper": true
}
}
}
}
}
}
},
"sort": [
{
"timestamp": {
"order": "desc"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment