Skip to content

Instantly share code, notes, and snippets.

@crocker
Created March 12, 2017 20:57
Show Gist options
  • Save crocker/357a22cae4c0c29e58a2f5a75f019abd to your computer and use it in GitHub Desktop.
Save crocker/357a22cae4c0c29e58a2f5a75f019abd to your computer and use it in GitHub Desktop.
Basic Elasticsearch histogram
{
"aggs": {
"histogram": {
"date_histogram": {
"field": "date",
"interval": "month"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment