# The reporting job failed + Error: Max attempts (3) reached for job X. Failed with: Error: Unable to get index-pattern

**URL:** <https://discuss.elastic.co/t/the-reporting-job-failed-error-max-attempts-3-reached-for-job-x-failed-with-error-unable-to-get-index-pattern/310588>\
**Category:** Kibana\
**Tags:** elastic-stack-security, elastic-stack-reporting\
**Created:** [July 26, 2022, 3:15am UTC](https://discuss.elastic.co/t/the-reporting-job-failed-error-max-attempts-3-reached-for-job-x-failed-with-error-unable-to-get-index-pattern/310588 "2022-07-26T03:15:35Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [July 26, 2022, 3:15am UTC](https://discuss.elastic.co/t/the-reporting-job-failed-error-max-attempts-3-reached-for-job-x-failed-with-error-unable-to-get-index-pattern/310588/1 "2022-07-26T03:15:35Z")

</div>

Hello World!

I'm trying to:

> **[Configure reporting in Kibana | Kibana Guide \[7.17\] | Elastic](https://www.elastic.co/guide/en/kibana/7.17/secure-reporting.html#grant-user-access)**
>
> A list of the supported authentication mechanisms in Kibana.

yet while trying to run report (using "added\*" index-pattern), getting the following error:

> The reporting job failed  
> Error: Max attempts (3) reached for job X. Failed with: Error: Unable to get index-pattern

* * *

My "custom\_reporting\_user" role:

> GET /\_security/role/\_reporting-XYZ

* * *

```auto
{
  "_reporting-XYZ" : {
    "cluster" : [],
    "indices" : [
      {
        "names" : [
          "added*"
        ],
        "privileges" : [
          "view_index_metadata",
          "read"
        ],
        "field_security" : {
          "grant" : [
            "*"
          ],
          "except" : []
        },
        "query" : """{"bool":{"must":[{"match_phrase":{"tag":{"query":"XYZ"}}}]}}""",
        "allow_restricted_indices" : true
      }
    ],
    "applications" : [],
    "run_as" : [],
    "metadata" : { },
    "transient_metadata" : {
      "enabled" : true
    }
  }
}

```

I don't have any issues when report run as "superuser", only user with `_reporting-XYZ` role assigned.

Please advise)  
Thank you in advance)

---

_[View the full topic](https://discuss.elastic.co/t/the-reporting-job-failed-error-max-attempts-3-reached-for-job-x-failed-with-error-unable-to-get-index-pattern/310588)._
