Other Usage

How to log event to an index for Splunk alert with multiple results?

spl_unker
Explorer

Hello Splunkers,

 

I would like to log event for Splunk alert  to an index . If Splunk alert returns only one result then there is no issue. But if there are multiple result it logs only one result randomly.

I have even chosen trigger alert for each result.

Any help on this would be great . TIA 

Labels (1)
0 Karma

spl_unker
Explorer

My alert action is to log an  event to an index for each result . But when there are multiple results for an alert ...it logs only one result to the index .  Attached screenshot of my alert 

0 Karma

inventsekar
SplunkTrust
SplunkTrust

just about this log event, you can see... "Trigger alert when"...

on that, "Number of results" is great than 0... change that zero to 1,... so that the trigger action will run only when you got one result. 

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !

spl_unker
Explorer

No , i guess my question is misunderstood.

 

If my alert throws 4 results .....i want all the 4 results to be logged into an index . Instead Splunk logs only one result into an index.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @spl_unker,

if you want to save results of an alert in a summary index you can configure a response action that makes this action.

I don't understand what you mean with "it logs only result randomly.".

You can have more results in one alert or have an alert for each results.

ciao.

Giuseppe

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...