Reporting

Is it possible to group several scheduled CSV reports into one email?

peterchow
Explorer

Dear all.

I have different kinds of scheduled CSV reports. I would like to group them into one email. May I know is it possible? Thanks

0 Karma

woodcock
Esteemed Legend

Yes, you can each search write its results out to separate KV Stores or disk files using outputlookup or outputcsv and then you can have a final separate search read them all in with a series of inputlookup or inputcsv commands chained together with append commands. Alternatively, you could skip the manual saving of the searches by ensuring that TTL is long enough and using a series of loadjob commands chained together with append commands.

0 Karma

peterchow
Explorer

Sorry, I don understand. Can you explain about that? Is it possible to have an example? Thanks

0 Karma

woodcock
Esteemed Legend

Let us say that we have 3 different reports that run every night. Add one line to the end of each report:

... | outputcsv ReportNumberOne.csv
... | outputcsv ReportNumberTwo.csv
... | outputcsv ReportNumberThree.csv

Then join them together in a new report like this:

|inputcsv ReportNumberOne.csv]
| appendpipe [|inputcsv ReportNumberTwo.csv]
| appendpipe [|inputcsv ReportNumberThree.csv]
0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...