Splunk Search

How to concatenate the two search results in single email report.

kartm2020
Communicator

We have two different scheduled search and it is providing the two different result. I would like send the both of the results in a single email.
Is it possible ?

0 Karma

aberkow
Builder

I have a couple thoughts here, none of which actually natively tie together the two result ids and send them combined in one email. That being said, here are some alternatives I can think of:

1) If the datasets are compatible, have a longer search that displays both sets of results. You can use the fillnull command to fill any whitespace in a table if it's bothering you that an entire column is null, for example.

2) Export both search results to csvs (outputlookup command) and pull those in as part of one search that sends an email of both contents combined (inputlookup command). This is similar to 1 but if the searches are hard to combine, this is likely a better option than an ugly join or append.

3) Assuming they have read access to whatever app the content will live in, you could save the scheduled searches to a dashboard and link the dashboard as part of the alert. I do that pretty often.

4) Write a custom alert action to pull in multiple data sources and does some custom action/js/html on it (this one is likely an add one to 1 or 2)

Personally, I like 3 if your consumers have the access/knowledge, because they can most easily play around with any results from Splunk than from an email. If not, 1 or 2 should get the job done if you can deal with likely empty overlapping information.

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!

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...