Skip to content

Instantly share code, notes, and snippets.

@davidski
Last active August 29, 2015 14:01
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 davidski/aeab819368419d38f608 to your computer and use it in GitHub Desktop.
Save davidski/aeab819368419d38f608 to your computer and use it in GitHub Desktop.
IP Aggregration Query
{
"size": 0,
"query": { },
"aggregations": {
"ip_ranges": {
"ip_range":{
"field": "srcip",
"ranges" : [
{ "from" : "10.0.0.0" },
{ "to" : "10.0.0.255" }
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment