Reporting - automatic reporting - monthly reports

Hi all,

Am using this snippet to generate automatic reports ,i tried to execute it works perfectly fine


PUT _xpack/watcher/watch/error_report
{
  "trigger" : {
    "schedule": {
      "interval": "1h"
    }
  },
  "actions" : {
    "email_admin" : { 
      "email": {
        "to": "'Recipient Name <recipient@example.com>'",
        "subject": "Error Monitoring Report",
        "attachments" : {
          "error_report.pdf" : {
            "reporting" : {
              "url": "http://0.0.0.0:5601/api/reporting/generate/dashboard/Error-Monitoring?_g=(time:(from:now-1d%2Fd,mode:quick,to:now))", 
              "retries":6, 
              "interval":"1s", 
              "auth":{ 
                "basic":{
                  "username":"elastic",
                  "password":"changeme"
                }
              }
            }
          }
        }
      }
    }
  }
}

but how to schedule Monthly reports lets say every 1 st day of each month I want previous entire month data in the saved visualisation

what needs to changed in the snippet.

Please do help me in figuring out this

Thanks in advance
Raj

1 Like

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