# Change auditd modules index name

**URL:** <https://discuss.elastic.co/t/change-auditd-modules-index-name/196054>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 21, 2019, 7:34am UTC](https://discuss.elastic.co/t/change-auditd-modules-index-name/196054 "2019-08-21T07:34:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad.ali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad.ali/32/45665_2.png) [@Mohammad.ali](https://discuss.elastic.co/u/Mohammad.ali)\
**Post date:** [August 21, 2019, 7:34am UTC](https://discuss.elastic.co/t/change-auditd-modules-index-name/196054/1 "2019-08-21T07:34:12Z")

</div>

Hello everyone  
i enable filebeat audit modules but the question is how can i change the default index name which is filebeat\*?

---

<div class="post-metadata">

**Author:** ![faec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/faec/32/46988_2.png) [@faec](https://discuss.elastic.co/u/faec)\
**Post date:** [August 22, 2019, 7:29pm UTC](https://discuss.elastic.co/t/change-auditd-modules-index-name/196054/2 "2019-08-22T19:29:49Z")

</div>

You probably want the `index` parameter in `output.elasticsearch` -- see the configuration docs [here](https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html)

---

<div class="post-metadata">

**Author:** ![Mohammad.ali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad.ali/32/45665_2.png) [@Mohammad.ali](https://discuss.elastic.co/u/Mohammad.ali)\
**Post date:** [August 23, 2019, 6:26pm UTC](https://discuss.elastic.co/t/change-auditd-modules-index-name/196054/3 "2019-08-23T18:26:34Z")

</div>

Thanks for your reply  
what i have done so far

1.) Enable the auditd modules

- module: auditd  
log:  
enabled: true  
var.paths: ["/var/log/audit/audit.log"]

2.) config my filebeat.yml file

setup.template.name: "audit"  
setup.template.pattern: "audit-\*"  
setup.template.enable: true  
setup.template.overwrite: true  
setup.template.settings:  
index.number\_of\_shards: 1  
#index.codec: best\_compression  
#\_source.enabled: false

output.elasticsearch:  
hosts: ["localhost:9200"]  
index: "audit-%{+yyyy.MM.dd}"

But when i start the service the default template is still used which is filebeat\*

---

<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:** [September 20, 2019, 6:34pm UTC](https://discuss.elastic.co/t/change-auditd-modules-index-name/196054/4 "2019-09-20T18:34:55Z")

</div>

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