1

I am using cloud elastic service and I have watcher entry that will alert me every hour about the count of packetbeat count. The code can be seen here...

https://ghostbin.com/paste/m5jqr

This is working as expected. But the attachment is just the count of documents and not the actual documents. I tried to send visualization or reports as explained here...

https://www.elastic.co/guide/en/x-pack/current/actions-email.html

But I keep getting an error that says the report is not found. How do I attach a document to email alert?

shantanuo
  • 31,689
  • 78
  • 245
  • 403

1 Answers1

1

You have "size": 0 in your query body. Which, by definition, will not return the documents that matched. If you want them, bump that size up.

Andrei Stefan
  • 51,654
  • 6
  • 98
  • 89