Skip to content

Instantly share code, notes, and snippets.

@sethyes
Last active September 17, 2019 21:00
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 sethyes/bae992385d4a21e2607a2680ccee619f to your computer and use it in GitHub Desktop.
Save sethyes/bae992385d4a21e2607a2680ccee619f to your computer and use it in GitHub Desktop.
{
"aggs": {
"2": {
"date_histogram": {
"field": "@timestamp",
"fixed_interval": "12h",
"time_zone": "America/Denver",
"min_doc_count": 1
},
"aggs": {
"3": {
"terms": {
"field": "zone",
"order": {
"_count": "desc"
},
"size": 5
}
}
}
}
},
"size": 0,
"_source": {
"excludes": []
},
"stored_fields": [
"*"
],
"script_fields": {},
"docvalue_fields": [
{
"field": "@timestamp",
"format": "date_time"
},
{
"field": "ipfix.flowEndMilliseconds",
"format": "date_time"
},
{
"field": "ipfix.flowStartMilliseconds",
"format": "date_time"
},
{
"field": "netflow.first_switched",
"format": "date_time"
},
{
"field": "netflow.last_switched",
"format": "date_time"
}
],
"query": {
"bool": {
"must": [
{
"range": {
"@timestamp": {
"format": "strict_date_optional_time",
"gte": "2019-09-03T19:24:49.443Z",
"lte": "2019-09-17T19:24:49.443Z"
}
}
}
],
"filter": [
{
"match_all": {}
}
],
"should": [],
"must_not": []
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment