Splunk Search

where clause issues/stripping out extraneous characters

a212830
Champion

Hi,

I need to do a where clause on a value that includes a % in the result, how can I strip off the percentage character so I can do a numerical where evaluation?

11:06:44 05/07/2015 good 1048333195 [Linux][Baseline][lrtp23][FileSystem][/boot] FileSystems\/boot\Use%=47% 7:45845 0 47

The "Use%" is a field, but the values get the percentage stored with them.

Tags (2)
0 Karma
1 Solution

woodcock
Esteemed Legend

Try this:

... | eval NoPct=rtrim(Use%,"%")

View solution in original post

woodcock
Esteemed Legend

Try this:

... | eval NoPct=rtrim(Use%,"%")
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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