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

sensitive-log4j2 识别格式 #31

Closed
ppliang13 opened this issue May 24, 2024 · 2 comments
Closed

sensitive-log4j2 识别格式 #31

ppliang13 opened this issue May 24, 2024 · 2 comments

Comments

@ppliang13
Copy link

ppliang13 commented May 24, 2024

我在使用这个进行脱敏时,这个无法对标签<phone>12326877231</phone> 进行脱敏吧

@ppliang13
Copy link
Author

进行重写脱敏 SensitiveRewritePolicy 285M
beginTime: 14:28:27.878
endTime: 14:28:42.563
共计用时:14685 毫秒

正常日志输出 285M
beginTime: 14:29:55.276
endTime: 14:29:56.485
共计用时:1209 毫秒

费时相差12倍

@houbb
Copy link
Owner

houbb commented Aug 13, 2024

支持的,可能需要定义一下前缀字符,比如 >

  1. 日志可以分类,业务支持一般需要脱敏,其他的没必要指定。
  2. 性能对比的话,可以考虑横比如自己实现一个正则之类的,然后用业务随机日志,真实对比一下看看效果。对比验证看下

@houbb houbb closed this as completed Aug 13, 2024
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