# Reporting - automatic reporting - monthly reports

**URL:** <https://discuss.elastic.co/t/reporting-automatic-reporting-monthly-reports/91766>\
**Category:** Kibana\
**Tags:** elastic-stack-reporting\
**Created:** [July 4, 2017, 12:06pm UTC](https://discuss.elastic.co/t/reporting-automatic-reporting-monthly-reports/91766 "2017-07-04T12:06:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raj_kumar/32/25420_2.png) [@Raj\_Kumar](https://discuss.elastic.co/u/Raj_Kumar)\
**Post date:** [July 4, 2017, 12:06pm UTC](https://discuss.elastic.co/t/reporting-automatic-reporting-monthly-reports/91766/1 "2017-07-04T12:06:31Z")

</div>

Hi all,

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

```auto

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 1, 2017, 12:06pm UTC](https://discuss.elastic.co/t/reporting-automatic-reporting-monthly-reports/91766/2 "2017-08-01T12:06:46Z")

</div>

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