# Auditbeat custom index name not working

**URL:** <https://discuss.elastic.co/t/auditbeat-custom-index-name-not-working/201483>\
**Category:** Beats\
**Tags:** auditbeat\
**Created:** [September 28, 2019, 8:03am UTC](https://discuss.elastic.co/t/auditbeat-custom-index-name-not-working/201483 "2019-09-28T08:03:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bharat1](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@bharat1](https://discuss.elastic.co/u/bharat1)\
**Post date:** [September 28, 2019, 8:03am UTC](https://discuss.elastic.co/t/auditbeat-custom-index-name-not-working/201483/1 "2019-09-28T08:03:03Z")

</div>

Hi All,  
I am planning to add my own custom index name (auditlogs instead of default auditbeat) of index for auditbeat but somehow its not working. Below are the configs that I have related to ES & Kibana, am I doing something wrong here or missing anything? FYI - I have not written any templates of my own but will load default inbuilt template available

```auto
setup.dashboards.index: "auditlogs-*"
host: "kibanahost:5601"
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["http://eshost1:9200"]
  index: "auditlogs-%{[agent.version]}-%{+yyyy.MM.dd}"
  setup.template.enabled: "true"
  setup.template.name: "auditlogs"
  setup.template.pattern: "auditlogs-*"
logging.level: debug
logging.selectors: ["*"]

```

---

<div class="post-metadata">

**Author:** ![bharat1](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@bharat1](https://discuss.elastic.co/u/bharat1)\
**Post date:** [October 3, 2019, 5:35am UTC](https://discuss.elastic.co/t/auditbeat-custom-index-name-not-working/201483/2 "2019-10-03T05:35:06Z")

</div>

Can anyone point me where I am going wrong? Appreciate your help

---

<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:** [October 24, 2019, 5:35am UTC](https://discuss.elastic.co/t/auditbeat-custom-index-name-not-working/201483/3 "2019-10-24T05:35:11Z")

</div>

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