Change index name within filebeats module file


Filebeat version is 7.10.2

According to Configuring Input Type for Filebeat Module I was trying to do the same for the index:

# cat /etc/filebeat/modules.d/haproxy.yml
# Module: haproxy
# Docs:

- module: haproxy
  # All logs
  log.input.index: "filebeat-haproxy-%{[agent.version]}-%{+yyyy.MM}"
    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!

7.10.2 is 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: )

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