脱敏
Last updated
Last updated
processor_filter_regex_native
插件根据事件字段内容来过滤事件。
推荐版本:iLogtail v2.0.0 及以上
参数
类型
是否必填
默认值
说明
Type
string
是
/
插件类型。固定为processor_desensitize_native。
SourceKey
string
是
/
源字段名。
Method
string
是
/
脱敏方式。可选值包括:
const:用常量替换敏感内容。
md5:用敏感内容的MD5值替换相应内容。
ReplacingString
string
否,当Method取值为const时必选
/
用于替换敏感内容的常量字符串。
ContentPatternBeforeReplacedString
string
是
/
敏感内容的前缀正则表达式。
ReplacedContentPattern
string
是
/
敏感内容的正则表达式。
ReplacingAll
bool
否
true
是否替换所有的匹配的敏感内容。
采集文件/home/test-log/sen.log
,将日志内容中的密码替换成******,并将结果输出到stdout。
输入
采集配置
输出