Getting Data In

How do you mask or hash an IP address in a log?

bwniranjan
New Member

I need to mask or hash an IP address from an Apache log in Splunk. Is there anyway we can do?

Tags (2)
0 Karma

niketn
Legend

@bwniranjan if your intent is to mask ip address prior to indexing you can refer to the following documentation: http://docs.splunk.com/Documentation/Splunk/latest/Data/Anonymizedata

If your intent is to mask IP address at search time you can use rex command with sed

Please confirm which one of the above two you need in case you need further details for either one!

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

bwniranjan
New Member

Ask is user who is searching the event in Splunk dashboard should not see the IP address.

0 Karma
Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...