Splunk Search

Iterate search over multiple field values

Sam1
Explorer

Hi,

I've created a search which is based on 1 field value but I need the search to run over many field values.  Rather than many repeating lines.

What is the best way to do this?  I know what the field values are before the search too.

It will be an alert where if 1 or more field values match the end criteria, an email is sent.  I only want 1 email, not 1 for every field value.

Thanks!

Labels (1)
0 Karma

anilchaithu
Builder

@Sam1 

you can use filed= value1 OR filed=value2 and so on in the search. You can always configure the alert to send an email for each result OR group of results.

anilchaithu_0-1593403878428.png

 

0 Karma

Sam1
Explorer

To give some more detail of my search, it takes the field value and look at the past hour of data, compares that to the past week of data to get the percent difference.  Then show result where diff > x.

This needs to done for each field value though and I don't know how to do that without a lot of evals, addtotals, etc.  I want to be able to do a nice clean short search regardless of the field value, and pass in the field value.

 

Thanks.

0 Karma
Get Updates on the Splunk Community!

Splunk Search APIを使えば調査過程が残せます

   このゲストブログは、JCOM株式会社の情報セキュリティ本部・専任部長である渡辺慎太郎氏によって執筆されました。 Note: This article is published in both Japanese ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...