Problem: I am trying to put an alert on for every time a log is not sent.
I have tried to stimulate my watch, but I get the following error message back:
"[parse_exception] could not read search request. unexpected object field [query]".
This is what my console looks like:
{
"trigger": {
"schedule": {
"interval": "1m"
}
},
"input": {
"search": {
"request": {
"query": {
"query_string": {
"default_field": "content",
"query": "(forward_to.keyword) AND (expo)"
}
},
"indices": "edmetric*"
}
}
},
"condition": {
"compare": {
"ctx.payload.hits.total": {
"gte": 1
}
}
},
"actions": {
"log": {
"logging": {
"text": "The number of {{ctx.payload.hits.total}} logs were not sent to Expo"
}
}
}
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.