Reporting

Map command with loadjob not returning all results

eli_mz
Explorer

I've run into an issue using the map command in combination with the loadjob command. I've put the string below together that is getting all of my fired alerts and then sending them to the loadjob command to display the results for each fired alert. Over the last 7 days I have ~2,000 fired alerts with ~3,900 results from those alerts but the string below only returns ~600 of those results.

index=_audit action=alert_fired alert_actions="*mailtosiem*" OR ss_name="My Extra Alert" | table sid, triggered_alerts | map search=" | loadjob $sid$"

I've tried setting maxsearches up to 100,000 but the search still only returns the 600 results. Can anyone shed any light on this? Am I approaching this wrong?

0 Karma

DalJeanis
Legend

You may be running into timeout issues of various kinds, as well as, potentially, out-of-memory issues.

It would seem to be a more scalable approach, although a PITA to redo all the architecture, to send those all to a summary index as they are generated.

Since that would require a bunch of mantime, just check whether your above strategy would work correctly for, say, the last 15 minutes. If it does, then run it every 15 minutes to send the results to a summary index, and you can scan the summary index to see what happened over the last day.

0 Karma
Get Updates on the Splunk Community!

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...