Skip to content

Instantly share code, notes, and snippets.

@CHARITH1995
Last active July 27, 2022 07:30
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 CHARITH1995/31db4a3dfddb7867c36a20c8618232b2 to your computer and use it in GitHub Desktop.
Save CHARITH1995/31db4a3dfddb7867c36a20c8618232b2 to your computer and use it in GitHub Desktop.
index.js file
{
"query": {
"bool": {
"filter": [
{
"range": {
"@timestamp": {
"from": "{{period_end}}||-1m",
"to": "{{period_end}}",
"include_lower": true,
"include_upper": true,
"format": "epoch_millis",
"boost": 1
}
}
},
{
"bool": {
"must_not": [
{
"term": {
"@Status_Code": {
"value": 3000,
"boost": 1
}
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"aggregations": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment