Reporting

For a scheduled report, is it possible not to attach a CSV file when there's no results?

kevinhyleepccw
Explorer

For a scheduled report, is it possible not to attach the CSV file when there's no results, but when there are results, do attach the CSV file?

Looks like there's only this option in savedsearches.conf:

action.email.sendcsv = [1|0]
* Specify whether to send results as a CSV file.
* Default: 0
    (or the 'sendcsv' setting in the alert_actions.conf file)
Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @kevinhyleepccw
instead of a scheduled search use an alert fired when there's any result, attaching the csv to the eMail.

Ciao.
Giuseppe

0 Karma

kevinhyleepccw
Explorer

Thanks! But we kind of still want to receive an email even when there's no results, but without the CSV file. When there are results, we want to receive an email with the CSV file attached. Is it possible?

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @kevinhyleepccw,
I don't think!
eventually it's possible to attack a csv with a message but i don't think that it's possible not attaching a file when empty!

Ciao.
Giuseppe

0 Karma

kevinhyleepccw
Explorer

Thank you so much for your help!

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...