Splunk Search

Remove spaces in a field value

MaximeM
Explorer

Hi there,

I have a field A like A="x, y", but I want to remove the space to get A="x,y"
How can I do it ?

Thanks,

Maxime

Tags (4)
0 Karma
1 Solution

Ayn
Legend
... | rex mode=sed field=A "s/ //g"

View solution in original post

Ayn
Legend
... | rex mode=sed field=A "s/ //g"

MaximeM
Explorer

Thanks a lot.

0 Karma
Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...