OS Dashboards Version: 2.0.0
My Document in Index:
{
"took" : 0,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 4,
"relation" : "eq"
},
"max_score" : 1.0,
"hits" : [
{
"_index" : "test2",
"_id" : "YNXDBYUBGeobV8lKm0LR",
"_score" : 1.0,
"_source" : {
"name" : "ABC",
"function" : "UVW",
"tag_name" : "abc",
"tag_value" : 197
}
}
I want to create monitor condition based on condition when particular document has value > 197.
In Visual Editor of Per document Monitor, the query has only two only option, is
, is not
.
My Extraction Query:
{
"description": "",
"queries": [
{
"id": "value",
"name": "value",
"query": "tag_value:\"197\"",
"tags": []
}
]
}
pls let me know how to implement monitor condition in per document monitor to get documents based on field if it’s value is greater than
or less than
particular value.