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

Help with trimming characters

$
0
0
Hi, having some issues here. I have the following values in a field named populace The values are encased in a < and > (I tried to show it in the thread but it won't) I need it to look like this: 15 12 4 0 ... I need to just get the numeric values out of this field and have used ltrim and rtrim but still see the unwanted characters of < and > | eval field=rtrim(populace,">") | eval field=ltrim(populace,"<") I also tried this: | eval populace=trim("<") Then finally I tried: | rex field=populace "<:(?.* >:)" Any guidance/help would be greatly appreciated. Thank you.

Viewing all articles
Browse latest Browse all 47296

Trending Articles