Hi everyone,
I am using Elasticsearch, Kibana and Watcher with Shield. I am trying to create a watch in order to notify me in the Elastic's log if it finds an ip. In the Watcher History (index), I observe that the watch works, however, there is nothing in the log:
Here the watch:
curl -XPUT 'http://localhost:9200/_watcher/watch/test' -d '{"trigger":{"schedule":{"interval":"10s"}},"input":{"search":{"request":{"indices":["Test"],"body":{"query":{"bool":{"must":[{"term":{"host":"192.168.0.1"}},{"range":{"@timestamp":{"gt":"now-5m"}}}]}}}}}},"condition":{"compare":{"ctx.payload.hits.total":{"eq":0}}},"actions":{"log":{"logging":{"text":"Found"}}}}'
Moreover, it works if I create a email action (before I configured Shield for email). I have to configure any else in Shield in the case of "logging action"?
Thanks in advance,
Regards