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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...