DennyF
07/10/2025, 9:19 AM$message =~ s/cardNo>\d\d\d\d\d\d\d\d\d\d\d\d/cardNo>XXXXXXXXXXXX/g;
$message =~ s/cvv>\d\d\d/cvv>XXX/g;
$message =~ s/cvv=\d\d\d/cvv=XXX/g;
$message =~ s/Verification%3E\d\d\d/Verification%3EXXX/g;
$message =~ s/R19%3E\d\d\d/R19%3EXXX/g;
$message =~ s/R16%3E\d\d\d\d\d\d\d\d\d\d\d\d/R16%3EXXXXXXXXXXXX/g;
$message =~ s/ccn=\d\d\d\d\d\d\d\d\d\d\d\d/ccn=XXXXXXXXXXXX/g;
$message =~ s/card_account=\d\d\d\d\d\d\d\d\d\d\d\d/card_account=XXXXXXXXXXXX/g;
$message =~ s/cvc_code=\d\d\d/cvc_code=XXX/g;
$message =~ s/password=/Password=XXX\&/g;
to replace sensitive creditcard data. How we can do the same in fluent-bit ?Pat
07/10/2025, 9:20 AMPat
07/10/2025, 9:20 AMPat
07/10/2025, 9:21 AMPat
07/10/2025, 9:21 AMDennyF
07/10/2025, 9:22 AMPat
07/10/2025, 9:22 AMPat
07/10/2025, 9:22 AMPat
07/10/2025, 9:23 AMDennyF
07/10/2025, 9:24 AMPat
07/10/2025, 9:25 AMPat
07/10/2025, 9:27 AMif (record.kubernetes and record.kubernetes.container_image) then
--[[
Attempt to extract the short image name using regex: '^.*/<short name>:.*$'.
LUA does not have regex support so instead we substitute empty strings in.
]]--
short_image = string.gsub(record.kubernetes.container_image, "^.*/", "")
record['short_image'] = string.lower(string.gsub(short_image, ":.*$", ""))
record['service'] = record['short_image']
record['source'] = record['short_image']
end
If you need a hand we can always help 🙂
fluent.doDennyF
07/10/2025, 9:32 AMeduardo
07/10/2025, 2:38 PMhash action
https://docs.fluentbit.io/manual/pipeline/processors/content-modifier#actionseduardo
07/10/2025, 2:41 PMPat
07/10/2025, 4:25 PMDennyF
07/11/2025, 7:13 AMPat
07/11/2025, 8:29 AMPat
07/11/2025, 8:30 AMDennyF
07/18/2025, 11:23 AMPat
07/18/2025, 11:29 AMPat
07/18/2025, 11:29 AM