Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How do I formulate the rex command to remove unnecessary spaces in the middle of my field values?

$
0
0
I have field values that are coming in with unnecessary spaces. I'm trying to remove them and from another post, I found to use `... | rex mode=sed field=A "s/ //g"` However, I don't want to remove every occurrence of the space in a given value. Spaces are appearing in the middle of actual words in the values: **Represent ative, Customer Service** **Representative, C ustomer Service** **Senior Re presentative, Customer Service** **Specialis t, Merchant Services** How do I formulate the `rex sed` command to remove space where there shouldn't be? The field has set values, however the space may occur anywhere in the value. The space after the comma (,) and between whole words is appropriate. Thanks for any assistance!

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>