# ElasticSearch custom index and mapping | local json data visualization issue

**URL:** <https://discuss.elastic.co/t/elasticsearch-custom-index-and-mapping-local-json-data-visualization-issue/344571>\
**Category:** Elasticsearch\
**Created:** [October 7, 2023, 4:31pm UTC](https://discuss.elastic.co/t/elasticsearch-custom-index-and-mapping-local-json-data-visualization-issue/344571 "2023-10-07T16:31:38Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 8, 2023, 1:42am UTC](https://discuss.elastic.co/t/elasticsearch-custom-index-and-mapping-local-json-data-visualization-issue/344571/8 "2023-10-08T01:42:34Z")

</div>

I assume you actually want this to be ongoing so yes you will need to use filebeat...

Pretty sure you are making a common mistake ...

Assuming you created your own template manually in Kibana / Elasticsearch then _ **take out all that setup template stuff** _ out and try what I have below ... mostly likely what you have it is just overwriting your template

```auto
# ================================== Template ==================================

# A template is used to set the mapping in Elasticsearch
# By default template loading is enabled and the template is loaded.
# These settings can be adjusted to load your own template or overwrite existing ones.

# Set to false to disable template loading.
setup.template.enabled: true

# Template name. By default the template name is "filebeat-%{[agent.version]}"
# The template name and pattern has to be set in case the Elasticsearch index pattern is modified.
setup.template.name: "darpa-%{[agent.version]}"

# Template pattern. By default the template pattern is "filebeat-%{[agent.version]}" to apply to the default index settings.
# The template name and pattern has to be set in case the Elasticsearch index pattern is modified.
setup.template.pattern: "darpa-%{[agent.version]}"

# Set to false to disable template loading.
setup.template.enabled: true
......

```

Just put this in this .. it says use what I manually loaded.

```auto
setup.template.enabled: false
setup.ilm.enabled: false

```

You can look at some of my other examples etc

> [@Metricbeat and Heartbeat 8.x custom index Name should pickup from template ,but creates always bedefault index name](https://discuss.elastic.co/t/metricbeat-and-heartbeat-8-x-custom-index-name-should-pickup-from-template-but-creates-always-bedefault-index-name/337557/13):
>
> Did you simply try to replace the generated ILM Policy and Template with yours with the same names etc after you ran setup? Data streams rollover that is part of the core functionality... but you are right it is a bit different in 8.x Data Streams it is internal you do not use the write alias the Data Stream it IS the alias. So what I did to test is I ran the setup with the config I had above. Then you can just edit the ILM policy to what you want it to be Edit the template to what you wan…

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-custom-index-and-mapping-local-json-data-visualization-issue/344571)._
