I have configured filebeat to read files from a log directory.
Any time I change a configuration in filebeat.yml
file and restart filebeat, it stops harvesting files.
If I restart after deleting the registry, everything works fine. I am not sure if it is a bug within filebeat that it requires me to delete the registry every time I change something in the configuration.
Use case:
I'm trying to add a new log directory with a new field in my filebeat configuration as follows:
filebeat.inputs:
- type: log
enabled: true
paths:
- "/mylogs/something*"
- "/mylogs/otherthing*"
ignore_older: 5m
scan_frequency: 20s
fields:
type: other
fields_under_root: true
multiline.pattern: '^[[:space:]]+(at|\.{3})\b|^Caused by:|^[[:space:]]{2}\"|^}'
multiline.negate: false
multiline.match: after
# This is the configuration that I added to filebeat before restarting it.
- type: log
enabled: true
paths:
- "/mylogs/newtype*"
ignore_older: 5m
fields:
type: newtype
fields_under_root: true
multiline.pattern: '^[[:space:]]+(at|\.{3})\b|^Caused by:|^[[:space:]]{2}\"|^}'
multiline.negate: false
multiline.match: after
Let me know if any more details are required.