Hi, I am trying to configure filebeat to create custom Index to send to ES. But the filebeat runs without error , but can't see any indices that it sends to ES.
This is my filebeat.yml config. I am deploying it in k8s with a configmap
data:
filebeat.yml: |-
filebeat.inputs:
- type: container
enabled: true
paths:
- /var/log/containers/nginx-*.log
fields:
log_type: dev-test-nginx
index: "%{[agent.name]}-%{[fields.log_type]}"
- type: container
enabled: true
paths:
- /var/log/containers/keystone-*.log
fields:
log_type: dev-test-keystone
index: "%{[agent.name]}-%{[fields.log_type]}"
output.elasticsearch:
hosts: ["http://my-elasticsearch:9200"]
setup.template.name: "dev-test"
setup.template.pattern: "dev-test-*"
setup.template.enabled: false
setup.template.overwrite: true
setup.ilm.enabled: false
setup.kibana:
host: "http://mi-kibana:5601"
logging.to_files: true
logging.files:
path: /var/log/filebeat
name: filebeat.log
permission: 0644
Any help would be appreciated