EDIT CHEF COOKBOOK TO HASH/MASK PASSWORDS
Is there a way where I can edit chef cookbook to process rule to hash/mask passwords that get logged in sumo logic ?
-
Assuming you are pushing the source json via chef, yes, we can add a section to the json to include the filters.
Generally speaking, we do hashing or masking via processing rules:
https://help.sumologic.com/Manage/Collection/Processing_Rules/Create_a_Processing_Rule
If not done via the UI, you can use the filter field in your source json.
Specifically for masking it would look something like this:
"filters":[{
"filterType":"Mask",
"name":"filter text",
"regexp":"(REGEX TO MASK)",
"mask":"VALUE TO MASK WITH"
}],Masking or hashing passwords can be tricky from a regex, but if you have them as part of a key value pair, it is much easier.
Please sign in to leave a comment.
Comments
1 comment