Reporting error using watcher

Hi All,

Am trying to execute a reporting everyday using watch but am unable to do it

PUT _xpack/watcher/watch/report1
{
"trigger" : {
"schedule": {
"interval": "1d"
}
},
"actions" : {
"email_admin" : {
"email": {
"to": "'xxxx'",
"subject": "Report",
"attachments" : {
"cis.pdf" : {
"reporting" : {
"url": "http://xxx)",
"retries":20,
"interval":"2m",
"auth":{
"basic":{
"username":"xxxx",
"password":"xxxx"
}
}
}
}
}
}
}
}
}

when am executing it am getting this message as a reason

 "actions": [
    {
      "id": "email_admin",
      "type": "email",
      "status": "failure",
      "reason": "Watch[report1] reporting[cis.pdf] Error when polling pdf from host[x.x.x.x], port[5601], method[POST], path[/api/reporting/generate/visualization/eb9c4d90-47c8-11e7-99d5-bf053cd1fae7], status[200]"
    }
  ]
},

and under generated reports its says status :failed
HeadlessError: Request() error evaluating createPage() call: Error: connect ECONNREFUSED x.x.x.x:48093

i have mentioned all the real values in xxxx.

what has to be done to fix this,please do let me know
Thanks,
Raj

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