Hi guys!
I've made a Filebeat module and I have no problem with it, it's working. My question is about index templates for Elasticsearch, right now I have the next block in /etc/filebeat/filebeat.yml
which is the main configuration file for Filebeat:
# Filebeat configuration file
filebeat.modules:
- module: mymodule
setup.template.json.enabled: true
setup.template.json.path: '/etc/filebeat/my-template.json'
setup.template.json.name: 'my-template-name'
setup.template.overwrite: true
output.elasticsearch.hosts: ['http://YOUR_ELASTIC_SERVER_IP:9200']
#output.logstash.hosts: ["YOUR_LOGSTASH_SERVER_IP:5000"]
Can I move the setup.template
block to some file of my module? I've been trying with some files with no result, it only works if I put it in the Filebeat main configuration, please help
# I want this block in my module and not in the Filebeat config
setup.template.json.enabled: true
setup.template.json.path: '/etc/filebeat/my-template.json'
setup.template.json.name: 'my-template-name'
setup.template.overwrite: true
Thanks!
Best regards,
Jesús