Splunk Search

Save transaction search results

wfroning
Explorer

How can I run the below search every hour and then append the results to the previous run?

eventtype=cisco_esa * | transaction maxspan=180s keepevicted=true mid dcid icid | fields mailfrom, mailto, message_id, subject

I do know how to schedule the search, but I've no clue how to combine multiple results for a subsequent search over a longer time span.

Thanks.

Tags (1)
0 Karma

MarioM
Motivator

you could use summary indexing command | collect index=mysummaryindex

Collect

wfroning
Explorer

This didn't work. After the search is imported to the new index, the dates are all wrong.

Earliest is "Mar 17, 1990 5:17:06 PM" and Latest is "Sep 6, 1991 11:26:51 AM" even though the search was limited to March 2012.

When I add testmode=true to collect it all looks correct, but comes out all wrong in the index. I've even tried adding "_time" to the fields to ensure it is there, that also didn't fix it.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...