Splunk Search

Creating checkboxes to check multiple severity values to update a report, how do I get the value ">5" to produce results?

jyothishtj
New Member

Hi Team,

I am trying to create a checkbox for severity with values 1,2,3,4 and >4. I need to check multiple checkboxes at the same time so a report will be refreshed based on the value. I tried to give name value pair as:

Name     Value
-----    -----
1        1
2        2
3        3
4        4
5+       >5

and Delimiter value as OR SEVERITY= and token as genSEVERITY

Then gave the report query as

index=index_custom SEVERITY= $genSEVERITY$  | table INC_COMPANY INC_NUMBER  SEVERITY | sort + SEVERITY

When I am checking values 1, 2, 3, 4, it is listing the values correctly, but when I am trying to select 5+ it is giving an error because the query will be

severity=1 or severity=2 or severity=3 or severity=4 or severity=>5

Is there any way I can get severity>=5 with this value, or any other methods to achieve the required results? Please help.

Thanks ,
Jyo

0 Karma
1 Solution

HeinzWaescher
Motivator

Have you tried out

index=index_custom $genSEVERITY$ | table INC_COMPANY INC_NUMBER SEVERITY | sort + SEVERITY

And then use
Name|Value
1 | severity=1
2 | severity=2
3 |severity=3
4 | severity=4
5+ |severity>=5

View solution in original post

0 Karma

HeinzWaescher
Motivator

Have you tried out

index=index_custom $genSEVERITY$ | table INC_COMPANY INC_NUMBER SEVERITY | sort + SEVERITY

And then use
Name|Value
1 | severity=1
2 | severity=2
3 |severity=3
4 | severity=4
5+ |severity>=5

0 Karma

jyothishtj
New Member

Thanks. This is working fine

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...