Reporting

Append triggering events to report summary

qas
Engager

I have a nightly report summarizing log events I am interested in. Is there a way to append the triggering log events after the timechart summary in the report?

Tags (1)
0 Karma

jrodman
Splunk Employee
Splunk Employee

The normal alert mechanisms will get the 'results' stream of a search, so the summarization will hide the events stream from the alerts.

The simplest approach would be to run it again, but differently, to get the events.

Probably its slow or you wouldn't be asking this.

The smart way would probably be to have a second search run using the prior search's artifacts. However, I don't know how to have two scheduled jobs communicate such a thing.

One interesting hackable feature is the 'custom condition search' which does run precisely this way. You could have for example a search which produces your events, then you hack the summarization into the 'alert condition' follow-on (warning, 10k default event limit), have that search emit at least one result, which will fire to cause the raw events from the original search to be sent.

A particularly evil method might be to use a custom alert script, and given the path to the results file, modify it to reach the events file, and grab those.

0 Karma
Get Updates on the Splunk Community!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

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 ...