Hello,
Is it possible to add two inputs files in filebeat.yml?
Example:-
- /etc/filebeat/inputs.d/*.yml
- /etc/filebeat-oss/inputs.d/*.yml
I wanna add these two files in filebeat.yml under filebeat.config.inputs.
Hello,
Is it possible to add two inputs files in filebeat.yml?
Example:-
- /etc/filebeat/inputs.d/*.yml
- /etc/filebeat-oss/inputs.d/*.yml
I wanna add these two files in filebeat.yml under filebeat.config.inputs.
We allow only one glob pattern in filebeat.config.inputs.path. However, the pattern can match multiple directories. Have you tried setting the option to /etc/filebeat*/inputs.d/*.yml?
U can only use 1 glob? The documentation for filestream input says a list of glob based paths, filestream input | Filebeat Reference [7.17] | Elastic. I feel like that's misleading.
This is different, the inputs supports a list of glob, the config that point to a directory with other configuration files does not.
The config path for inputs is used when you want to load the inputs from external files, I used in that way on a previous company.
The documentation is here.

completely misread that
I have added like this, It's working.
filebeat.config.inputs:
enabled: true
path: /etc/filebeat/inputs.d/*.yml
reload.enabled: true
reload.period: 10s
filebeat.inputs:
- type: log
paths:
- /path/log/*.log
but the issue is in *.yml have JSON log and input for *.log format, In the message, I'm getting timestamp as message, Is there any way I can drop the timestamp string from the message.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.