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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...