# Unable to view my custom index patterns in kibana

**URL:** <https://discuss.elastic.co/t/unable-to-view-my-custom-index-patterns-in-kibana/220905>\
**Category:** Elasticsearch\
**Created:** [February 25, 2020, 6:17pm UTC](https://discuss.elastic.co/t/unable-to-view-my-custom-index-patterns-in-kibana/220905 "2020-02-25T18:17:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![preeti20](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@preeti20](https://discuss.elastic.co/u/preeti20)\
**Post date:** [February 25, 2020, 6:17pm UTC](https://discuss.elastic.co/t/unable-to-view-my-custom-index-patterns-in-kibana/220905/1 "2020-02-25T18:17:05Z")

</div>

Hi all, I am doing an install of Elasticsearch `7.6` version on my kubernetes cluster. I have an index-template json which creates custom index patterns. my template.json looks like below. When i create the template, I get mapper\_parsing\_exception

`{ "error" : { "root_cause" : [{ "type" : "mapper_parsing_exception", "reason" : "Root mapping definition has unsupported parameters: [doc : {dynamic_templates=[{strings_as_text={mapping={type=text}, match_mapping_type=string}}], properties={logline={analyzer=keyword, type=text}, kubernetes={properties={pod_name={analyzer=keyword, type=text}}}, component={analyzer=keyword, type=text}, @timestamp={type=date}, beat={properties={hostname={ignore_above=1024, type=keyword}, timezone={ignore_above=1024, type=keyword}, name={ignore_above=1024, type=keyword}, version={ignore_above=1024, type=keyword}}}, namespace={analyzer=keyword, type=text}, error={properties={code={type=long}, message={norms=false, type=text}, type={ignore_above=1024, type=keyword}}}, fields={type=object}}}]" } ]`

I read the docs for 7.6 wherein there is removal for mapping types, i tried removing the `doc` from the template but I don't see the index patterns getting created in `Kibana` . also the `_cat/indices` shows `docs.count` as `0` for those indexes after I remove doc type. To summarize, when I dont include `_doc` in the template, the POST call is successful, but i see no patterns created in Kibana Discovery. could someone help me with whats wrong with my template.

\</POST \_template/containerlogs?pretty  
{  
"index\_patterns":[  
"foo-_", "bar-_"  
],  
"mappings":{  
"doc":{  
"dynamic\_templates":[  
{  
"strings\_as\_text":{  
"match\_mapping\_type":"string",  
"mapping":{  
"type":"text"  
}  
}  
}  
],  
"properties":{  
"@timestamp":{  
"type":"date"  
},  
"beat":{  
"properties":{  
"hostname":{  
"ignore\_above":1024,  
"type":"keyword"  
},  
"name":{  
"ignore\_above":1024,  
"type":"keyword"  
},  
"timezone":{  
"ignore\_above":1024,  
"type":"keyword"  
},  
"version":{  
"ignore\_above":1024,  
"type":"keyword"  
}  
}  
},  
"logline":{  
"type":"text",  
"analyzer": "keyword"  
},  
"component":{  
"type":"text",  
"analyzer": "keyword"  
},  
"namespace":{  
"type":"text",  
"analyzer": "keyword"  
},  
"kubernetes":{  
"properties":{  
"pod\_name":{  
"type":"text",  
"analyzer": "keyword"  
}  
}  
},  
"error":{  
"properties":{  
"code":{  
"type":"long"  
},  
"message":{  
"norms":false,  
"type":"text"  
},  
"type":{  
"ignore\_above":1024,  
"type":"keyword"  
}  
}  
},  
"fields":{  
"type":"object"  
}  
}  
}  
},  
"order":2,  
"settings":{  
"index":{  
"mapping":{  
"total\_fields":{  
"limit":10000  
}  
},  
"unassigned": {  
"node\_left": {  
"delayed\_timeout": "60m"  
}  
},  
"number\_of\_routing\_shards":30,  
"refresh\_interval":"5s"  
}  
}  
}\>

---

<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 24, 2020, 6:17pm UTC](https://discuss.elastic.co/t/unable-to-view-my-custom-index-patterns-in-kibana/220905/2 "2020-03-24T18:17:10Z")

</div>

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