fluent-plugin-record-modifier
fluent-plugin-record-modifier copied to clipboard
Single Backslag not able to print into field
#TargetUserName and TargetDomainName
<filter log.raw>
@type record_modifier
remove_keys _dummy_
<record>
_dummy_ ${if record['TargetUserName'] and record['TargetDomainName']; record['TargetDomainUserName'] = "${record['TargetUserName']}\${record['TargetDomainName']}"; end; nil}
</record>
</filter>
Shows --> "TargetDomainUserName":"Hello#{record['TargetDomainName']}"
"${record['TargetUserName']}\\${record['TargetDomainName']}"
Shows -> "TargetDomainUserName":"Hello\\World"
So there is no way to put a single backslash on the record_modifier
what is the if else syntax? is it for ruby?