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

Masking not working as intended #3

Open
ku-s-h opened this issue Dec 17, 2018 · 3 comments
Open

Masking not working as intended #3

ku-s-h opened this issue Dec 17, 2018 · 3 comments
Assignees

Comments

@ku-s-h
Copy link

ku-s-h commented Dec 17, 2018

<filter logs.**>
  @type pan_anonymizer
  @id filter_logs_pan
  <pan>
    formats /([0-9]{6})[0-9]{3,9}([0-9]{4})/
  </pan>
</filter>

affects all logs lines, surrounding each character with the specified mask. For example:
stdout is modified to ****s****t****d****o****u****t****

Using fluent version 1.2.5

@hiroakis
Copy link
Member

@mightwork Hi, thank you for reporting an issue. I'll check that.

@hiroakis hiroakis self-assigned this Dec 25, 2018
@hiroakis hiroakis mentioned this issue Dec 26, 2018
hiroakis added a commit that referenced this issue Dec 26, 2018
@hiroakis
Copy link
Member

hiroakis commented Dec 26, 2018

@mightwork I create a patch (#4) to fix the issue. The current status is in review.

@hiroakis
Copy link
Member

hiroakis commented Jan 4, 2019

@mightwork I'm sorry that I took so long time. The engineering team has kept discussing the issue. Could you change your config as follows? I believe it will work fine.

<filter logs.**>
  @type pan_anonymizer
  @id filter_logs_pan
  <pan>
    formats ["([0-9]{6})[0-9]{3,9}([0-9]{4})"]
  </pan>
</filter>

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