Adding extra field in filebeat


# 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.
   - {some path}
   target_index: import-export-logger
   build_version: $build_version

Here I want to add build_version in the fields. My build_version is stored in a file on each server.

Can filebeat read the file and add build_version in the field?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.