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!

Demo Day: Strengthen Your SOC with Splunk Enterprise Security 8.1

Today’s threat landscape is more complex than ever. Security operation centers (SOCs) are overwhelmed with ...

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...