Skip to content

Instantly share code, notes, and snippets.

@CHARITH1995
Last active July 27, 2022 07:24
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/4088019b87eb3d81e51be15103fa1d08 to your computer and use it in GitHub Desktop.
Save CHARITH1995/4088019b87eb3d81e51be15103fa1d08 to your computer and use it in GitHub Desktop.
login.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
}
}
},
{
"match_phrase": {
"@Module_Name": {
"query": "Admin MS",
"slop": 0,
"zero_terms_query": "NONE",
"boost": 1
}
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"aggregations": {
"when": {
"min": {
"field": "@Time_Spent"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment