ntran
(Nhung )
August 16, 2019, 7:39pm
1
Hi,
My goal: To create an alert that tells me when a customer has not received a log.
My problem: The name of the customer is within an aggregated field.
My question: How do I retrieve the customer name and how can I incorporate this changing field into in the action?
// Below is my watcher thus far
// Below is the aggregated query. Is it possible to retrieve the "key" field and have it appear in my action?
elasticsearchAggregatedField
"aggregations" : {
"forward_to" : {
"doc_count_error_upper_bound" : 0,
"sum_other_doc_count" : 0,
"buckets" : [
{
"key" : "EXPO",
"doc_count" : 384860209
}
]
This file has been truncated. show original
Any advice is greatly appreciated!
Thank you in advance
spinscale
(Alexander Reelsen)
August 19, 2019, 6:57am
2
please share the output of the Execute Watch API , which makes it a lot easier to follow your steps.
ntran
(Nhung )
August 19, 2019, 8:23am
3
Hi @spinscale ,
I have yet to do my "action" section, which is where I am struggling.
For the time being, I have put in a "text" action.
//Watcher Executed output
watcherExecutedOutput
{
"watch_id": "_inlined_",
"node": "2wsFClF8QneXt9cuG_L1yw",
"state": "execution_not_needed",
"user": "ttran",
"status": {
"state": {
"active": true,
"timestamp": "2019-08-19T08:21:14.483Z"
},
This file has been truncated. show original
Thank you,
Nhung
ntran
(Nhung )
August 19, 2019, 8:39am
4
I don't know if this is correct, but am I on somewhat on the right track?
// Watcher action
spinscale
(Alexander Reelsen)
August 19, 2019, 9:31am
5
I just realized we are talking across two threads here. I will stop replying to this one. Please keep it to a single thread. Thanks!
system
(system)
Closed
September 16, 2019, 9:37am
7
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.