Watcher not automatically sending any emails

I am trying to get the report below automatically sent to me every hour but unfortunately I got several errors. Is there any way to fix them? Did I do the code wrong? Please let me know. Thank you.

Dev Tools Coding for the Watcher is below.

PUT _watcher/watch/daily_report
  "trigger" : {
    "schedule": {
      "interval": "1h"
  "actions" : {
    "email_admin" : { 
      "email": {
        "to": "'Angad Panesar <angz.panesar@gmail.comk>'",
        "subject": "Report",
        "attachments" : {
          "daily_report.pdf" : {
            "reporting" : {
              "url": """", 

Output of the PUT method.

  "_id" : "daily_report",
  "_version" : 37,
  "_seq_no" : 36,
  "_primary_term" : 1,
  "created" : false

The error that I got is displayed below.

"reason": "Watch[daily_report] reporting[daily_report.pdf] Error when polling pdf from host[], port[9243], method[POST], path[/api/reporting/generate/csv_searchsource], status[500], body[{\"statusCode\":500,\"error\":\"Internal Server Error\",\"message\":\"Reporting generation failed: Error: Max attempts (3) reached for job kzr1k5hm000ze229abco2dmb. Failed with: Error: Saved object [index-pattern/e133d0b0-8f14-11ec-98e8-098d0ac4e109] not found\"}]"

Wondering why the max attempts are shown as three. Anyway, the exception states that an index pattern could not be find, that the link seems to require? Is everything there as needed?

The main problem that I am actually having is that this command keeps sending the same csv report every hour using this link above. The post URL uses the last 24 hours in the discover tab. Every hour, it keeps sending the same data in the csv and it doesn't send newly fresh and updated data recently added. Is there any way that you can help me with this please?

Wild guess of looking closely at your dashboard link, there are parameters included that look like a fixed date: 2022-02-15T15:05:33 ... could that be an issue?

Yes, even I tried to remove the fixed data of the date strict optional time I still get error exception when running the watcher command. I also noticed that in version 7.17.0 you have to save your search before getting the post URL whereas in previous versions you don't have to save. In the previous versions, you can get the post URL without that fixed date.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.