Hi Splunkers, Good day. I am trying to perform search time masking using a Calculated Field to replace _raw with the required result. This goes fine for me for my particular data of concern. However, it goes complex somehow when that particular field in the same event has to be masked another way. Citing an example below to explain more clearly. Masking - 16 digits 2021/01/21 - 01:15 AM <ACT>1234567890123456</ACT> Result: 2021/01/21 - 01:15 AM <ACT>123456######3456</ACT> However, if I see 15 digits for this field, masking should be 5 ##### rather than 6 for 16digits. Masking - 15 digits 2021/01/25 - 01:15 AM <ACT>987654321012345</ACT> Result: 2021/01/25 - 01:15 AM <ACT>987654#####2345</ACT> Since the same field, _raw, is being worked on. I reckon this is not possible. props.conf [<sourcetype>] EVAL-_raw = replace(_raw,"(\d{6})(\d{5,6})(\d{4})","\1######\3") Please let me know of your thoughts/suggestions. Thanks in adv. Cheers!
... View more