Splunk Search

How to search and trigger an alert if the same value repeats more than once in a certain field for that particular event?

duraij
Explorer

For example:

:Report=99,10,99

In this case value 99 occurred twice in this field, so I need to pick this event and then create an alert. Please help in solving this issue

0 Karma

somesoni2
Revered Legend

Give this a try (works on Splunk 6.2.0 and above)

your base search | eval temp=split(Report,",") | where mvcount(temp)>mvcount(mvdedup(temp)) | fields - temp
0 Karma

duraij
Explorer

It dint give me any response

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...