Splunk Search

How do I use Greater Than in a string

devanoverstock
Explorer

I have a field called rules_tripped

It returns the results like this 

 

 

rules_tripped="5237260000001713515:Item Sku Fraud & Chargeback Percentage 0:0"

 

 

Rule ID : Rule Name : Rule Score

I want to only search for rules that have a rule score of > 800 

Is that possible to split the query and search for only rules with a rule score of > 800?

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Try this

| eval rules_score=mvindex(split(rules_tripped,":"),2)
| where rules_score > 800

View solution in original post

devanoverstock
Explorer

That worked perfectly, thank you!!!

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try this

| eval rules_score=mvindex(split(rules_tripped,":"),2)
| where rules_score > 800
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...