Wondering if would be possible to add an extra field to the @metadata 'dictionary' from an input section of filebeat?
Eg. someting like:
filebeat.input:
- type: filestream
id: <some id goes here>
enabled: true
@metadata:
dsprefix: "prefix-value_"
...
output:
index: "%{[@metadata.dsprefix]}filebeat-%{[agent.version]}"
$ filebeat test config
Exiting: error loading config file: yaml: line 30: found character that cannot start any token
complains about the line starting with '@'