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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...