QuestionQ207

VerifiedManipulating Raw Data

Using SEDCMD in props.conf enables modification of raw data. Given the event below, which option masks the first three digits of the AcctID field, producing this output: [22/Oct/2018:15:50:21] VendorID=1234 Code=B AcctID=xxx5309

Event:

[22/Oct/2018:15:50:21] VendorID=1234 Code=B AcctID=xxx5309

Explanation

A SEDCMD substitution has the form s/<regex>/<replacement>/flags, and capture groups can be reused as backreferences in the replacement. Matching AcctID=\d{3}(\d{4}) and replacing it with AcctID=xxx\1 masks the initial three digits while preserving the final four digits, yielding AcctID=xxx5309.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!