Getting Data In

How do I keep my IP address data un anonymized by using splunk anonimizer?

melonman
Motivator

Hi

I am using splunk CLI anonymize command to anonymize my log data.
One thing I would like to do with the command is to keep my IP address data NOT anonymized.
Can I do such thing using anonymize CLI commant?

Any comment would be appreciated.
Thank you in advance,

Tags (1)
0 Karma
1 Solution

emechler_splunk
Splunk Employee
Splunk Employee

I'm not sure if this will do exactly what you want, but you can add terms to the $SPLUNK_HOME/etc/anonymizer/dictionary.txt file that you don't want anonymized (see here for more info). In your case, since you want to keep IP's intact, you'd need to add 1, 2, 3, ... 255 to this file.

for i in `seq 1 10` ; do echo $i >> $SPLUNK_HOME/etc/anonymizer/dictionary.txt ; done

I say this might not do what you want because there may be other numbers that you do want anonymized, however this change might prevent that. YMMV.

View solution in original post

0 Karma

emechler_splunk
Splunk Employee
Splunk Employee

I'm not sure if this will do exactly what you want, but you can add terms to the $SPLUNK_HOME/etc/anonymizer/dictionary.txt file that you don't want anonymized (see here for more info). In your case, since you want to keep IP's intact, you'd need to add 1, 2, 3, ... 255 to this file.

for i in `seq 1 10` ; do echo $i >> $SPLUNK_HOME/etc/anonymizer/dictionary.txt ; done

I say this might not do what you want because there may be other numbers that you do want anonymized, however this change might prevent that. YMMV.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...