Filebeat configuration supports multiple inputs, how can be this achived with custom module config.yml ?
I would like to tag single path with the unique value.
@mraz1337 I think you were close, but sometime YAML alignment get in the way. Something similar to the following should work.
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.
paths:
- /var/log/*.log
#- c:\programdata\elasticsearch\logs\*
# Optional additional fields. These fields can be freely picked
# to add additional information to the crawled log files for filtering
fields:
tags: tag1
- type: log
# Change to true to enable this input configuration.
enabled: true
# Paths that should be crawled and fetched. Glob based paths.
paths:
- /var/other logs/*.log
#- c:\programdata\elasticsearch\logs\*
# Optional additional fields. These fields can be freely picked
# to add additional information to the crawled log files for filtering
fields:
tags: mytag2
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.