Splunk Search

Remove $ (dollar) characters in field results

numeroinconnu12
Path Finder

Morning, everyone,

Thank you in advance for your help.

I would like to remove a part of a character from my results.

My query results look like this:

j2874a8B$

I'd like to delete the $ to get it:

j2874a8B

How do I proceed? Thank you very much.

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| rex field=result mode=sed "s/\$//g"

View solution in original post

0 Karma

numeroinconnu12
Path Finder

Thank you @ITWhisperer  it's work.  

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| rex field=result mode=sed "s/\$//g"
0 Karma
Get Updates on the Splunk Community!

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...