Hello,
Facing issue where log files are not getting picked up from filebeat in same dir.
files - files1.log (this is not getting picked up)
files-access.log (this file gets picked up)
filebeat config
filebeat.inputs:
- type: log
enabled: true
paths:
- /var/log/*/*/*.log
- /home/centos/standalone_apps/*/logs/*.log
input_type: log
json.keys_under_root: true
json.add_error_key: true
json.message_key: message
reload.enabled: false
json.overwrite_keys: true
setup.template.settings:
index.number_of_shards: 1
index.codec: best_compression
setup.ilm.enabled: false
setup.template.fields: "${path.config}/fields.yml"
setup.template.name: "xyz"
setup.template.pattern: "xyz"
setup.template.enabled: true
setup.template.overwrite: true
logging.level: debug
logging.to_files: true
logging.files:
path: /var/log/filebeat
name: filebeat
keepfiles: 4
permissions: 0644
http.enabled: true
http.host: xxx
output.elasticsearch:
hosts: ["xxx:9200"]
index: "xxx-%{+yyyy.MM.dd}"
# Enable filebeat config reloading
filebeat.config:
#inputs:
#enabled: false
#path: inputs.d/*.yml
#reload.enabled: true
#reload.period: 10s
modules:
enabled: true
path: ${path.config}/modules.d/*.yml
reload.enabled: true
reload.period: 10s```