Dear Team,
I have created a watcher in sentinl, i am able to send emails via it.
Now i want to send reports using the same.
I am getting below error:
{
"@timestamp": "2019-03-27T06:13:00.033Z",
"error": true,
"report": true,
"watcher": "watcher_001",
"action": "Report screenshot",
"level": "high",
"message": "ActionError: report action : execute : run 'puppeteer' report : puppeteer work",
"type": "sentinl-alarm",
"_index": "watcher_alarms-2019.03.27",
"id": "RiLHvWkB6C48nRWPxqcD"
}
Kindly find below watcher configuration:
{
"actions": {
"Report_screenshot_7eeca0c4-52a3-470d-a8c8-bbf4f29eeec1": {
"name": "Report screenshot",
"throttle_period": "1m",
"report": {
"auth": {
"mode": "basic",
"active": false,
"username": "kib",
"password": "kib"
},
"priority": "high",
"stateless": false,
"body": "You can find the screenshot in the attachment.",
"save": true,
"snapshot": {
"res": "1920x1080",
"url": "http://10.0.51.128:5602/app/kibana#/dashboard/96cc9100-5052-11e9-bbcc-0d5edbc7e194?_g=(refreshInterval:(pause:!t,value:0),time:(from:now-5y,mode:quick,to:now))&_a=(description:'',filters:!(),fullScreenMode:!f,options:(darkTheme:!f,hidePanelTitles:!f,useMargins:!t),panels:!((embeddableConfig:(),gridData:(h:15,i:'1',w:24,x:0,y:0),id:be9851d0-5050-11e9-bbcc-0d5edbc7e194,panelIndex:'1',type:visualization,version:'6.4.0')),query:(language:lucene,query:''),timeRestore:!f,title:'%20Dashboard_001',viewMode:view)",
"params": {
"delay": 50000,
"crop": "false"
},
"type": "png",
"name": "apek_report"
},
"to": "abc@xyz.com",
"from": "kibana-request@xyz.com",
"subject": "Report generation !!!!"
}
}
},
"input": {
"search": {
"request": {
"index": [
"apek_01"
],
"body": {
"query": {
"bool": {
"filter": {
"range": {
"@timestamp": {
"gte": "now-5y/y",
"lte": "now/y",
"format": "epoch_millis"
}
}
}
}
},
"size": 0,
"aggs": {
"dateAgg": {
"date_histogram": {
"field": "@timestamp",
"time_zone": "Europe/Amsterdam",
"interval": "1m",
"min_doc_count": 1
}
}
}
}
}
}
},
"condition": {
"script": {
"script": "payload.aggregations.dateAgg.buckets.some(b => b.doc_count>=92)"
}
},
"trigger": {
"schedule": {
"later": "every 1 minutes"
}
},
"disable": false,
"report": false,
"title": "watcher_001",
"wizard": {
"chart_query_params": {
"queryType": "count",
"scheduleType": "every",
"over": {
"type": "all docs"
},
"last": {
"n": 5,
"unit": "years"
},
"interval": {
"n": 1,
"unit": "minutes"
},
"timezoneName": "Europe/Amsterdam",
"threshold": {
"n": 92,
"direction": "above eq"
},
"timeField": "@timestamp"
}
},
"save_payload": false,
"spy": false,
"impersonate": false
}
My Kibana.yml:
sentinl:
#es:
#host: 10.0.51.128
#port: 9202
settings:
email:
active: true
host: 10.1.61.58
port: 25
report:
active: true
Regards,
Apeksha