Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single Backslag not able to print into field #38

Open
joaquin386 opened this issue Oct 1, 2018 · 1 comment
Open

Single Backslag not able to print into field #38

joaquin386 opened this issue Oct 1, 2018 · 1 comment

Comments

@joaquin386
Copy link

joaquin386 commented Oct 1, 2018

#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

@zffocussss
Copy link

what is the if else syntax? is it for ruby?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants