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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...