# Could not locate that index-pattern (id: api-filebeat-\*)

**URL:** <https://discuss.elastic.co/t/could-not-locate-that-index-pattern-id-api-filebeat/233647>\
**Category:** Kibana\
**Created:** [May 21, 2020, 2:22am UTC](https://discuss.elastic.co/t/could-not-locate-that-index-pattern-id-api-filebeat/233647 "2020-05-21T02:22:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![duc00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/duc00/32/68773_2.png) [@duc00](https://discuss.elastic.co/u/duc00)\
**Post date:** [May 21, 2020, 2:22am UTC](https://discuss.elastic.co/t/could-not-locate-that-index-pattern-id-api-filebeat/233647/1 "2020-05-21T02:22:15Z")

</div>

Hello,

I am loading Filebeat pre-built dashboards into Kibana using the command

```auto
filebeat setup -e --dashboards

```

and having the following `filebeat.yml` configuration concerning indices:

```auto
setup.dashboards.enabled: true
setup.dashboards.index: "api-filebeat-*"
setup.dashboards.kibana_index: ".kibana_1"
setup.kibana.host: "https://***:443"
setup.kibana.username: ***
setup.kibana.password: ***

setup.template.settings:
  index.number_of_shards: 1
setup.ilm.enabled: true
setup.ilm.policy_name: "api-filebeat"
setup.ilm.rollover_alias: "api-filebeat-%{[agent.version]}"
setup.ilm.pattern: "{now/d}-000001"

```

The issue is that even though I **have** a `api-filebeat-*` pattern, I still get the following message in the dashboard visualizations:  
`Could not locate that index-pattern (id: api-filebeat-*), [click here to re-create it](#/management/kibana/index_pattern)`.

When I hit the `.kibana` index, I can see the pattern:

```auto
{
        "_index" : ".kibana_1",
        "_type" : "_doc",
        "_id" : "index-pattern:9aed3b50-93df-11ea-b566-290f21fe075f",
        "_score" : 1.0300813,
        "_source" : {
          "migrationVersion" : {
            "index-pattern" : "7.6.0"
          },
          "index-pattern" : {
            "timeFieldName" : "@timestamp",
            "title" : "api-filebeat-*"
          },
          "references" : [],
          "updated_at" : "2020-05-12T19:41:17.645Z",
          "type" : "index-pattern"
        }
}

```

I have seen some similar posts but they were pretty old and I could not solve my issue.

Elasticsearch: 7.6.2  
Kiabana: 7.6.2  
Filebeat: 7.6.2

Thanks for your help,  
Mathieu

---

<div class="post-metadata">

**Author:** ![duc00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/duc00/32/68773_2.png) [@duc00](https://discuss.elastic.co/u/duc00)\
**Post date:** [May 21, 2020, 3:51am UTC](https://discuss.elastic.co/t/could-not-locate-that-index-pattern-id-api-filebeat/233647/2 "2020-05-21T03:51:27Z")

</div>

> [@duc00](#):
>
> filebeat setup -e --dashboards

I also see that when running this command, an index pattern filebeat-\* is created. But when looking at it in Kibana, I get errors `Not found` for its fields. I delete it.

---

<div class="post-metadata">

**Author:** ![joshdover](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshdover/32/42020_2.png) [@joshdover](https://discuss.elastic.co/u/joshdover)\
**Post date:** [May 21, 2020, 7:19pm UTC](https://discuss.elastic.co/t/could-not-locate-that-index-pattern-id-api-filebeat/233647/3 "2020-05-21T19:19:12Z")

</div>

Hi there Mathieu!

I'm not a filebeat expert, but it appears that the Dashboard is looking for an index-pattern with the id of `api-filebeat-*` while the index pattern that exists has an id of `9aed3b50-93df-11ea-b566-290f21fe075f`. Since you already have an index pattern set up manually, I think you can change the `setup.dashboards.index` config to `9aed3b50-93df-11ea-b566-290f21fe075f` and run `filebeat setup -e --dashboards` again.

Let me know if this works for you!

---

<div class="post-metadata">

**Author:** ![duc00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/duc00/32/68773_2.png) [@duc00](https://discuss.elastic.co/u/duc00)\
**Post date:** [May 21, 2020, 11:45pm UTC](https://discuss.elastic.co/t/could-not-locate-that-index-pattern-id-api-filebeat/233647/4 "2020-05-21T23:45:39Z")

</div>

Hi Josh,

Thank you for your answer!  
I did it the other way and created a new index pattern having id `api-filebeat-*`. Worked like a charm!

Thanks for your help,  
Mathieu

---

<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:** [June 18, 2020, 11:45pm UTC](https://discuss.elastic.co/t/could-not-locate-that-index-pattern-id-api-filebeat/233647/5 "2020-06-18T23:45:41Z")

</div>

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