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!

Why You Can't Miss .conf25: Unleashing the Power of Agentic AI with Splunk & Cisco

The Defining Technology Movement of Our Lifetime The advent of agentic AI is arguably the defining technology ...

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...