There are some scenarios where an administrator would need to anonymize, or mask, sensitive personal information from the data that is indexed into the Splunk platform, such as credit card or Social Security numbers. You can anonymize parts of confidential fields in events to protect privacy while providing enough remaining data for use in event tracking.
To anonymize data with Splunk Enterprise, configure a Splunk Enterprise instance as a heavy forwarder and anonymize the incoming data with that instance before sending it to Splunk Enterprise.
There are two ways to anonymize data with a heavy forwarder:
SEDCMD setting. This setting exists in the props.conf configuration file, which you configure on the heavy forwarder. It acts like a sed *nix script to do replacements and substitutions. This method is more straightforward, takes less time to configure, and is slightly faster than a regular expression transform. But there are limits to how many times it can be invoked the SEDCMD setting and what it can do. For instructions on this method, see Anonymize data with a sed script.Both of these options are also available in Splunk Enterprise, where you can complete the configuration on either a heavy forwarder or an indexer.
SEDCMD-myclass=s/.//g SEDCMD-myclass=s/\s//gRight:
SEDCMD-myclass=s/.//g SEDCMD-myotherclass=s/\s//g3. If a SED should change data after another SED, set the order by adding numbers to the class:
SEDCMD-001myclass=s/.//g SEDCMD-002myotherclass=s/\s//g4. Check if there is a conflict with an eval command by commenting on all evals temporarily. Sometimes, eval attributes that point to the same piece of raw data, may cause SEDCMD not to take effect.
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |