Monitoring Splunk

Removing "+" from the result

runiyal
Path Finder

My logfile has a columns "myField" and logfile has something like this - 

&myField=I+need+assistance+with+myPolicy.+My+question+is+Question+1+-+What+is+the+value+of+ABC+Insurance+as+listed+in+Stock+market+

I am able to set the value in my table but how can I remove "+".

seems like replace "+" WITH "" IN myField is not working.

 

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

The replace command only replaces the first occurrence - try 

| eval myField=replace(myField, "\+", " ")

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

The replace command only replaces the first occurrence - try 

| eval myField=replace(myField, "\+", " ")
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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