Been having trouble getting the index to be created as a different index name than filebeat.
#============================= Filebeat modules ===============================
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: true
reload.period: 10s
#==================== Elasticsearch template setting ==========================
setup.template.name: "apache"
setup.template.name: "apache-*"
setup.template.fields: "fields.yml"
setup.template.overwrite: false
setup.template.settings:
index.number_of_shards: 1
index.number_of_replicas: 1
#==================== General ==========================
name: agamemnon
#tags: ["apache", "internal"]
#============================== Dashboards =====================================
setup.dashboards:
index: "apache-*"
#============================== Kibana =====================================
setup.kibana:
host: "kibana:5601"
#================================ Outputs =====================================
output.elasticsearch:
hosts: ["elastic1:9200", "elastic2:9200"]
index: "apache-%{[agent.version]}-%{+yyyy.MM.dd}"
#----------------------------- Logstash output --------------------------------
#output.logstash:
# hosts: ["logstash2:5044"]
#================================ Processors =====================================
# Configure processors to enhance or manipulate events generated by the beat.
processors:
- add_host_metadata: ~
- add_cloud_metadata: ~
#==================== Logging ==========================
logging.level: info
logging.to_files: true
logging.files:
path: /var/log/filebeat
name: filebeat
keepfiles: 7
permissions: 0644
With the config above, I am able to delete my apache dashboard and visualizations, then have it reimport the dashboards, and the dashboard will look for apache-* index pattern as expected.
However, I cannot get the index to write as apache-, and it always just uses the filebeat index. I would like to change this as across all of our hosts I will be sending certain things such as apache, nginx, and mysql for starters with filebeat modules. I was able to get the index name to change using logstash, but logstash strips the fields that filebeat sends which are needed to operate the default dashboard, and are also more robust than the logstash combinedaccess log grok filter, so was hoping to for ease send directly from FB to ES.
I assume it hurts performance to have multiple modules / event patterns sent to ES inside the same index?
Any suggestions?
Filebeat7, ES7, LS7, Kibana7