# Change index name within filebeats module file

**URL:** https://discuss.elastic.co/t/change-index-name-within-filebeats-module-file/336772
**Category:** Beats
**Tags:** filebeat
**Created:** [June 23, 2023, 12:31pm UTC](https://discuss.elastic.co/t/change-index-name-within-filebeats-module-file/336772 "2023-06-23T12:31:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jazzl0ver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jazzl0ver/32/109692_2.png) [@jazzl0ver](https://discuss.elastic.co/u/jazzl0ver)
#### Post date: [June 23, 2023, 12:31pm UTC](https://discuss.elastic.co/t/change-index-name-within-filebeats-module-file/336772/1 "2023-06-23T12:31:02Z")

</div>

Hi,

Filebeat version is 7.10.2

According to [Configuring Input Type for Filebeat Module](https://discuss.elastic.co/t/configuring-input-type-for-filebeat-module/193819) I was trying to do the same for the index:

```auto
# cat /etc/filebeat/modules.d/haproxy.yml
# Module: haproxy
# Docs: https://www.elastic.co/guide/en/beats/filebeat/7.10/filebeat-module-haproxy.html

- module: haproxy
  # All logs
  log.input.index: "filebeat-haproxy-%{[agent.version]}-%{+yyyy.MM}"
  log:
    enabled: true

    # Set which input to use between syslog (default) or file.
    #var.input: file

    # Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    var.paths: /var/log/haproxy/access.log

```

No errors, filebeat starts up and running, but filebeat-haproxy index is not created.

Any ideas why?

Thanks in advance!

---

<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: [June 23, 2023, 12:31pm UTC](https://discuss.elastic.co/t/change-index-name-within-filebeats-module-file/336772/2 "2023-06-23T12:31:02Z")

</div>

7.10.2 is [EOL](https://www.elastic.co/support/eol) and no longer supported. Please upgrade ASAP.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

---

<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: [July 21, 2023, 2:32pm UTC](https://discuss.elastic.co/t/change-index-name-within-filebeats-module-file/336772/3 "2023-07-21T14:32:00Z")

</div>

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