I want to scrub all log messages before sending them to match one of several PayloadRegexDecoder. I think I can do it with chained MultiDecoders, but it's ugly:
[ScrubAndDecode] type = "MultiDecoder" subs = ["SanitizeDecoder", "applog_decoder"] cascade_strategy = "all" [SanitizeDecoder] type = "SandboxDecoder" filename = "sanitize_decoder.lua" [applog_decoder] type = "MultiDecoder" subs = ["error_decoder", "other_decoder"] cascade_strategy = "first-wins" [error_decoder] type = "PayloadRegexDecoder" match_regex = "blah" [other_decoder] type = "PayloadRegexDecoder" match_regex = 'blah' Anyone have another strategy? Thanks
_______________________________________________ Heka mailing list [email protected] https://mail.mozilla.org/listinfo/heka

