Closed zot24 closed 1 year ago
This will allow us to override the hostname key from the records values like so:
hostname
records
<source> @type forward </source> <filter service.**> @type record_transformer <record> hostname ${tag_parts[1]} </record> </filter> <match service.**> @type remote_syslog hostname_key hostname ... </match>
So with the filter tag we'll modify the record and change the hostname value to then use the hostname_key to set the hostname used by remote_syslog
filter
record
hostname_key
remote_syslog
Sorry for not responding for so long. We can use placeholders for hostname in the latest version. I close this now, but if you still have a problem, please tell us again. Thanks for your contribution.
This will allow us to override the
hostname
key from therecords
values like so:So with the
filter
tag we'll modify therecord
and change thehostname
value to then use thehostname_key
to set thehostname
used byremote_syslog