Splunk Search

replacing values with "*****"

hurryupfool123
Explorer

I have a field "users" that spits out the result "*****" 

I want to replace the ***** with an IP address its actually related to...  i.e.

replace ***** with (12.13.12.13). so that when ever ****** pops up on my table its replaced with the IP's above.

but everytime I search I get a failure stating I can't use consecutive ******  

|replace "*****" with  (12.13.12.13)  

how can I literally reference ***** as a strings instead of SPL thinking I am saying to search anything bc of the ****** 

 

0 Karma
1 Solution

isoutamo
SplunkTrust
SplunkTrust
Please try to escape every * with \. Basically that means “\*\*\*\*\*”. Some cases you must use more than one \ to escape character.
r. Ismo

View solution in original post

isoutamo
SplunkTrust
SplunkTrust
Please try to escape every * with \. Basically that means “\*\*\*\*\*”. Some cases you must use more than one \ to escape character.
r. Ismo

hurryupfool123
Explorer

thank you!  don't know why I didn't think of that! 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...