Hi
I am try-ing to send a pdf using the watch I get the following message:
Unable to get attachment of type [http] with id [dash_report.pdf] in watch [dash_report] aborting watch execution
I used the following watcher:
{
"trigger" : {
"schedule": {
"interval": "10m"
}
},
"actions" : {
"email_admin" : {
"email": {
"to": "'Recipient Name foo@bar.com'",
"subject": "Dashboard Monitoring Report",
"attachments" : {
"dash_report.pdf" : {
"http" : {
"content_type" : "application/pdf",
"request" : {
"method": "POST",
"headers": {
"kbn-xsrf": "reporting"
},
"auth": {
"basic": {
"username": "elkuser",
"password": "secret"
}
},
"read_timeout": "300s",
"url":
"https://0.0.0.0:5601/api/reporting/generate/dashboard/dashboard?_g=(time:(from:now-1d%2Fd,mode:quick,to:now))&sync"
}
}
}
}
}
}
}
}
Any suggestions?