# Custom index not getting created in Kibana

**URL:** <https://discuss.elastic.co/t/custom-index-not-getting-created-in-kibana/347970>\
**Category:** Kibana\
**Created:** [November 25, 2023, 9:35am UTC](https://discuss.elastic.co/t/custom-index-not-getting-created-in-kibana/347970 "2023-11-25T09:35:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [November 26, 2023, 3:44pm UTC](https://discuss.elastic.co/t/custom-index-not-getting-created-in-kibana/347970/4 "2023-11-26T15:44:01Z")

</div>

Follow these instructions [here](https://www.elastic.co/guide/en/beats/filebeat/8.11/change-index-name.html) (there is a bug in the 8.5. docs)

Ok try this.... this is a complete working sample

This will setup the template and ILM policy with your custom name, where you can control the daily rollover.

Do not try to create a data stream with the `-%{+yyyy.MM.dd}` syntax ... just go to the new ILM policy and set the rollover daily and the backing index will roll over daily... example in this case

`.ds-customname-8.5.3-2023.11.26-000001`

The commented-out last line you can uncomment that when you run setup but you MUST comment it back out or it will reload the dashboards every time which takes a very long time and it will look like filebeat is not working ... also on only use that if you plan to reuse a modules dashboards

```auto
filebeat.inputs:
- type: filestream
  id: syslogs
  enabled: true
  paths:
    - /var/log/system.log
filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false
output.elasticsearch:
  hosts: ["localhost:9200"]
  index: "customname-%{[agent.version]}"

setup.template.name: "customname-%{[agent.version]}"
setup.template.pattern: "customname-%{[agent.version]}"
setup.ilm.enabled: true
setup.ilm.policy_name: "customname"
# setup.dashboards.index: "customname-*"

```

 ![Screenshot 2023-11-26 at 7.41.45 AM](https://us1.discourse-cdn.com/elastic/original/3X/c/8/c80de62cc8fb28fa5b1e4f50c596927ee64c0c32.png)  
 ![Screenshot 2023-11-26 at 7.41.38 AM](https://us1.discourse-cdn.com/elastic/original/3X/9/b/9badab554184bb84964004ac8f123c5049ae8b1b.png)  
 ![Screenshot 2023-11-26 at 7.41.33 AM](https://us1.discourse-cdn.com/elastic/original/3X/9/1/91cfc05e80b8775767067733e339a6fbc520bcf1.png)  
 ![Screenshot 2023-11-26 at 7.43.29 AM](https://us1.discourse-cdn.com/elastic/original/3X/b/5/b57549f5cd20e89cdfdd3adcebdb72f044d86869.png)

---

_[View the full topic](https://discuss.elastic.co/t/custom-index-not-getting-created-in-kibana/347970)._
