# Kibana 6.2 reporting failing due maximum number of retries

**URL:** <https://discuss.elastic.co/t/kibana-6-2-reporting-failing-due-maximum-number-of-retries/121272>\
**Category:** Kibana\
**Created:** [February 23, 2018, 7:01pm UTC](https://discuss.elastic.co/t/kibana-6-2-reporting-failing-due-maximum-number-of-retries/121272 "2018-02-23T19:01:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay.Dhillon](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@Jay.Dhillon](https://discuss.elastic.co/u/Jay.Dhillon)\
**Post date:** [February 23, 2018, 7:01pm UTC](https://discuss.elastic.co/t/kibana-6-2-reporting-failing-due-maximum-number-of-retries/121272/1 "2018-02-23T19:01:31Z")

</div>

Everytime there is more than 50+ events found by watcher the email alert fails due to Kibana PDF report.

Receiving error:

Watch[Report15m] reporting[report.pdf]: Aborting due to maximum number of retries hit [6]"

Also Watcher trigger doesn't attach full JSON file for every event but only below:  
{  
"ctx" : {  
"metadata" : {  
"color" : "red",  
"xpack" : {  
"type" : "json"  
}  
},  
"watch\_id" : "Report15m",  
"payload" : {  
"\_shards" : {  
"total" : 5,  
"failed" : 0,  
"successful" : 5,  
"skipped" : 0  
},  
"hits" : {  
"hits" : [],  
"total" : 16,  
"max\_score" : 0.0  
},  
"took" : 1,  
"timed\_out" : false  
},  
"id" : "Report15m\_bd48e163-9181-4eee-ad3b-5c1d5d706584-2018-02-23T18:37:33.622Z",  
"trigger" : {  
"triggered\_time" : "2018-02-23T18:37:33.622Z",  
"scheduled\_time" : "2018-02-23T18:37:33.130Z"  
},  
"vars" : { },  
"execution\_time" : "2018-02-23T18:37:33.622Z"  
}  
}

Parameter used inside attachments:

"Raw Data": {  
"data": {  
"format": "json"  
}  
},

Transform field includes below:

"transform": {  
"search": {  
"request": {  
"search\_type": "query\_then\_fetch",  
"indices": [  
"_Indices_"  
],  
"types": [],  
"body": {  
"query": {  
"match": {  
"identity.authorization.action": "Error\*"  
},  
"range": {  
"@timestamp": {  
"gte": "now-2m"  
}  
}  
}  
}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [February 23, 2018, 7:27pm UTC](https://discuss.elastic.co/t/kibana-6-2-reporting-failing-due-maximum-number-of-retries/121272/2 "2018-02-23T19:27:59Z")

</div>

I would recommend increasing the worker timeout. Try setting `xpack.reporting.queue.timeout` in kibana.yml to 120000.

[https://www.elastic.co/guide/en/kibana/current/reporting-settings-kb.html](https://www.elastic.co/guide/en/kibana/current/reporting-settings-kb.html)

---

<div class="post-metadata">

**Author:** ![Jay.Dhillon](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@Jay.Dhillon](https://discuss.elastic.co/u/Jay.Dhillon)\
**Post date:** [February 23, 2018, 8:38pm UTC](https://discuss.elastic.co/t/kibana-6-2-reporting-failing-due-maximum-number-of-retries/121272/3 "2018-02-23T20:38:32Z")

</div>

Thanks for your input. Suggested parameter didn't seems to do the trick. Found ""retries":" parameter for PDF report and set to 12 tries which seems to work now.

Furthermore, Any suggestions on why attached JSON file not attaching JSON file for every event?

> [@Jay.Dhillon](#):
>
> Parameter used inside attachments:
> 
> "Raw Data": {
> 
> "data": {
> 
> "format": "json"
> 
> }
> 
> },
> 
> Transform field includes below:
> 
> "transform": {
> 
> "search": {
> 
> "request": {
> 
> "search\_type": "query\_then\_fetch",
> 
> "indices": [
> 
> "Indices"
> 
> ],
> 
> "types": ,
> 
> "body": {
> 
> "query": {
> 
> "match": {
> 
> "identity.authorization.action": "Error\*"
> 
> },
> 
> "range": {
> 
> "@timestamp": {
> 
> "gte": "now-2m"
> 
> }
> 
> }
> 
> }
> 
> }
> 
> }
> 
> }
> 
> }

---

<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:** [March 23, 2018, 8:38pm UTC](https://discuss.elastic.co/t/kibana-6-2-reporting-failing-due-maximum-number-of-retries/121272/4 "2018-03-23T20:38:36Z")

</div>

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