What is the correct example to redact a plain-text password from raw events?
The correct answer is B. in props.conf:
[identity]
SEDCMD-redact_pw = s/password=([^,|/s]+)/ ####REACTED####/g
s/password=([^,|/s]+)/ ####REACTED####/g
The g flag at the end means that the replacement is applied globally, not just to the first match.
Option A is incorrect because it uses the REGEX attribute instead of the SEDCMD attribute. The REGEX attribute is used to extract fields from events, not to modify them.
Option C is incorrect because it uses the transforms.conf file instead of the props.conf file. The transforms.conf file is used to define transformations that can be applied to fields or events, such as lookups, evaluations, or replacements. However, these transformations are applied after indexing, not before.
Option D is incorrect because it uses both the wrong attribute and the wrong file. There is no REGEX-redact_pw attribute in the transforms.conf file.
Harris
27 days agoMitsue
2 days agoErick
9 days agoArlette
15 days agoLaurena
29 days agoNell
20 hours agoDeja
9 days agoTamar
23 days agoSerina
1 months agoMerilyn
11 days agoBuddy
14 days agoLyla
27 days agoArminda
1 months agoClemencia
2 months agoPhil
6 days agoTheron
14 days agoLilli
1 months agoGeraldine
1 months agoSina
2 months agoEmerson
2 months agoDante
20 days agoMaryann
26 days agoMohammad
29 days agoRoyce
1 months agoElbert
2 months ago