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
Get Updates on the Splunk Community!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...