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.
References: 1: Redact data from events - Splunk Documentation
Lynda
5 months agoGail
5 months agoHortencia
6 months agoTimothy
6 months agoJames
6 months agoFloyd
6 months agoVenita
7 months agoEffie
7 months agoEdison
7 months agoVannessa
7 months agoLaurel
7 months agoDarrin
8 months agoMalissa
8 months agoAnnamaria
1 year agoKaycee
12 months agoMaryrose
12 months agoMyra
12 months agoInocencia
12 months agoAlecia
12 months agoTalia
12 months agoNoe
1 year agoAnnett
1 year agoRomana
1 year agoMartin
1 year agoBeckie
1 year agoEllsworth
1 year agoJame
1 year agoStephane
1 year agoCarey
1 year agoStephane
1 year agoVashti
1 year agoEvangelina
1 year agoReed
1 year agoStefania
1 year agoCarey
1 year ago