Splunk Search

anonymized data

gregwilliams
Path Finder

We are conducting a study in our organization surrounding productivity and user behavior. Currently I'm receiving all firewall logs which is logging all user activity. The people who are conducting the study want to see traffic for one week and then send out an email reminding them to only use the internet for business purposes. This data needs to be anonymized, but not completely anonymized.

I am using sed to replace src=111.222.333.444 with src=############, but was wondering if there is anyway to replace the src=111.222.333.444 with something isn't completely randomized, for example, change the 444 into aaa so we can track whether or not productivity increases and random traffic decreases after we send the nice email out.

Tags (2)

Ron_Naken
Splunk Employee
Splunk Employee

This should change the last octet to aaa for an IP address:

| rex field=src mode=sed "s/(\d+\.)(\d+\.)(\d+\.)(\d+)/\1\2\3aaa/g"
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...