# Discovery and TSVB, doesn't recognize index patterns change

**URL:** <https://discuss.elastic.co/t/discovery-and-tsvb-doesnt-recognize-index-patterns-change/243365>\
**Category:** Elasticsearch\
**Created:** [July 31, 2020, 2:55pm UTC](https://discuss.elastic.co/t/discovery-and-tsvb-doesnt-recognize-index-patterns-change/243365 "2020-07-31T14:55:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Incauto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/incauto/32/60149_2.png) [@Incauto](https://discuss.elastic.co/u/Incauto)\
**Post date:** [July 31, 2020, 2:55pm UTC](https://discuss.elastic.co/t/discovery-and-tsvb-doesnt-recognize-index-patterns-change/243365/1 "2020-07-31T14:55:41Z")

</div>

I have 4 index patterns with data from diferents sources, in the index pattern section of Kibana I can see the different fields of the indexes, but in discovery and TSVB the fields remain the same when I change the index pattern to visualize the data.

I have work with, 7.5, 7.6, and never have this problem.

[UPDATE]  
I realize that Discovery and TSVB always show me the fields of the default index pattern (mixed with some fields of the other indexes), so I delete them all, recreated other index that wasnt the default, and still get the fields of the old default index pattern! fields that doesnt exist in the actual index.

[UPDATE 2]

now I have just one index pattern, I use this in the dev tools

```auto
GET /my-new-index/_mapping

```

and I get the mapping of the old default index, but I erase that index pattern, the mapping should not exists acording to this [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/indices-delete-mapping.html#:~:text=Delete%20Mappingedit,it%20with%20the%20new%20mappings.)  
you just need to delete the index to erase the mapping.....I dont know what is going on

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [July 31, 2020, 3:43pm UTC](https://discuss.elastic.co/t/discovery-and-tsvb-doesnt-recognize-index-patterns-change/243365/2 "2020-07-31T15:43:30Z")

</div>

It sounds like this is not a Kibana issue, but a problem with Elasticsearch mappings.

Maybe you configured an index template bringing back these old mappings?

---

<div class="post-metadata">

**Author:** ![Incauto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/incauto/32/60149_2.png) [@Incauto](https://discuss.elastic.co/u/Incauto)\
**Post date:** [July 31, 2020, 3:57pm UTC](https://discuss.elastic.co/t/discovery-and-tsvb-doesnt-recognize-index-patterns-change/243365/3 "2020-07-31T15:57:29Z")

</div>

it seems to be that, I dont have any index template defined, I have deleted the indexes in elasticsearch, reindex the data without creating any index pattern, and then go to index management (in the elastic section) and check the mapping, and still have the mapping of the old index pattern, but that mapping should not exists. 🤷‍♂️

So any time a create an index in elasticsearch with logstash, automaticaly get the mapping of the old default index pattern. but again, that mapping shouldnt exist.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [July 31, 2020, 4:00pm UTC](https://discuss.elastic.co/t/discovery-and-tsvb-doesnt-recognize-index-patterns-change/243365/4 "2020-07-31T16:00:07Z")

</div>

So you are not creating this index manually, it's Logstash doing it on your behalf? In that case there might be something off in the Logstash config.

---

<div class="post-metadata">

**Author:** ![Incauto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/incauto/32/60149_2.png) [@Incauto](https://discuss.elastic.co/u/Incauto)\
**Post date:** [July 31, 2020, 4:24pm UTC](https://discuss.elastic.co/t/discovery-and-tsvb-doesnt-recognize-index-patterns-change/243365/5 "2020-07-31T16:24:10Z")

</div>

yes, logstash index the documents, but in the output I only have the elasticsearh output, no additional setting, I have done this many times, but this have never happend before.

usualy i index the documents with logstasth, with no mapping, and then when Im shure that everything is OK i create a mapping for that index.

but the old mapping is somehow saved in elastic, because in logstash I dont have any aditional configuration.

```auto
output{
# stdout{ codec => rubydebug }
    elasticsearch { hosts => ["my_ip:9200"] index => "metrics-new-index-%{+YYYY.MM}"}
}

```

and, yes, the other outputs have a different index name

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [July 31, 2020, 5:03pm UTC](https://discuss.elastic.co/t/discovery-and-tsvb-doesnt-recognize-index-patterns-change/243365/6 "2020-07-31T17:03:57Z")

</div>

Unfortunately I'm not sure what could cause this, could you post this question again in the Elasticsearch forum? Make sure to include snippets from how the mapping looks vs. how you expect it to look in the post.

---

<div class="post-metadata">

**Author:** ![Incauto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/incauto/32/60149_2.png) [@Incauto](https://discuss.elastic.co/u/Incauto)\
**Post date:** [August 1, 2020, 12:01am UTC](https://discuss.elastic.co/t/discovery-and-tsvb-doesnt-recognize-index-patterns-change/243365/7 "2020-08-01T00:01:45Z")

</div>

My bad, I didn't set the independent pipelines in pipelines.yml, I was using the default main, with wildcard, so all the pipelines were mixed. 🤦‍♂️

---

<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:** [August 29, 2020, 12:01am UTC](https://discuss.elastic.co/t/discovery-and-tsvb-doesnt-recognize-index-patterns-change/243365/8 "2020-08-29T00:01:50Z")

</div>

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