I'm using filebeat on a debian 10 to ship logfiles directly to elasticsearch und use kibana as the GUI to display an filter those files, as it's supposed to be. The problem is, that the configurations i make doesnt have any effect.
I set the paths that filebeat should harvest in the filebeat.input section. I even set the paths to exclude the paths it should not harvest. I've tried to set the paths in single quotes, double qoutes, no qoutes at all, nothing stops filebeat to harvest the wrong files.
Any idea what am i doing wrong?
Here the filebeat.yml:
#=========================== Filebeat inputs =============================
filebeat.inputs:
Each - is an input. Most options can be set at the input level, so
you can use different inputs for various configurations.
Below are the input specific configurations.
type: log
Change to true to enable this input configuration.
enabled: true
Paths that should be crawled and fetched. Glob based paths.
can you re-post the configuration using the pre-formatted text style to check indenting?
I'm not sure how files should appear at each section, but have seen it without quotes and double quoted before.
Can also add which files are being logged that shouldn't and which are being not logged but should?
All files at the /var/log/* folder and subfolders being harvested. But, as i configured in the filebeat.yml, i want filebeat only to harvest the files configured under the inputs-section and exclude the files under the exclude_files-section (which would not be necessary, if filebeat would ignor all files except the files being set at the input). And it seems, that changes in the filebeat.yml have no effect at all.
Any idea whats wrong?
You don't need to exclude any path if you have explicitly provided full file path in the input section.
It should be used in case you use a file pattern for input and want to exclude some files.
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.