Splunk Search

How to extract some % values of specific parameters?

thaghost99
Path Finder

hi, i am a bit lost, i am trying to extract some % values of specific parameters. but with no luck

example i want to extract the anti-virus value of 12%

 

this is my command

| rex field=_raw "Anti-Spam\s*<(?<cpu>.*)>"

Gauges: Current
System
RAM Utilization 65%
Overall CPU load average 43%
CPU Utilization
MGA 20%
Anti-Virus 12%
Reporting 0%
Quarantine 0%

Labels (1)
0 Karma

scelikok
SplunkTrust
SplunkTrust

 Hi @thaghost99,

Below should work;

| rex field=_raw "Anti-Spam\s*(?<cpu>.*)"
If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma

thaghost99
Path Finder

sorry i am missing the anti-virus.

 

here is the actual.

 

Gauges: Current
System
RAM Utilization 53%
Overall CPU load average 44%
CPU Utilization
MGA 34%
Anti-Spam 35%
Anti-Virus 0%
Reporting 0%
Quarantine 0%

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...