Skip to content

Instantly share code, notes, and snippets.

@inqueue
Last active November 4, 2016 17:01
Show Gist options
  • Save inqueue/69ee725d71b1ddd49af3185f8dc540c9 to your computer and use it in GitHub Desktop.
Save inqueue/69ee725d71b1ddd49af3185f8dc540c9 to your computer and use it in GitHub Desktop.
Search: ES filtered OR
GET metricbeat/_search
{
"query": {
"bool": {
"filter": {
"bool": {
"should": [
{"term": {"metricset.name": {"value": "cpu"}}},
{"term": {"metricset.name": {"value": "load"}}}
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment