<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Configure Scheduled Search to send out csv file in email instead of inline results in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Scheduled-Search-to-send-out-csv-file-in-email-instead/m-p/29724#M5138</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a scheduled search which sends out alerts when certain criteria matches. Currently the results are sent inline in the email. Is there a way to send the results in csv format as a attachment? We have several searches and i do not want to make the change global.&lt;/P&gt;

&lt;P&gt;Splunk Version 4.1.6&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2011 03:16:24 GMT</pubDate>
    <dc:creator>anantshah</dc:creator>
    <dc:date>2011-01-21T03:16:24Z</dc:date>
    <item>
      <title>Configure Scheduled Search to send out csv file in email instead of inline results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Scheduled-Search-to-send-out-csv-file-in-email-instead/m-p/29724#M5138</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a scheduled search which sends out alerts when certain criteria matches. Currently the results are sent inline in the email. Is there a way to send the results in csv format as a attachment? We have several searches and i do not want to make the change global.&lt;/P&gt;

&lt;P&gt;Splunk Version 4.1.6&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2011 03:16:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-Scheduled-Search-to-send-out-csv-file-in-email-instead/m-p/29724#M5138</guid>
      <dc:creator>anantshah</dc:creator>
      <dc:date>2011-01-21T03:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Scheduled Search to send out csv file in email instead of inline results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Scheduled-Search-to-send-out-csv-file-in-email-instead/m-p/29725#M5139</link>
      <description>&lt;P&gt;You should be able to do this by editing the alert_actions.conf file in $SPLUNK_HOME/etc/system/local.   Specifically, create/add the email stanza to specify csv non-inline results to be included.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[email]
format = csv
sendresults = 1
inline = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For reference, see the alert_actions.conf.spec file.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2011 01:59:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-Scheduled-Search-to-send-out-csv-file-in-email-instead/m-p/29725#M5139</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2011-01-22T01:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Scheduled Search to send out csv file in email instead of inline results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Scheduled-Search-to-send-out-csv-file-in-email-instead/m-p/29726#M5140</link>
      <description>&lt;P&gt;Will this affect all scheduled alerts? I only want to modify a specific scheduled alert.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2011 06:19:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-Scheduled-Search-to-send-out-csv-file-in-email-instead/m-p/29726#M5140</guid>
      <dc:creator>anantshah</dc:creator>
      <dc:date>2011-01-26T06:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Scheduled Search to send out csv file in email instead of inline results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Scheduled-Search-to-send-out-csv-file-in-email-instead/m-p/29727#M5141</link>
      <description>&lt;P&gt;This will apply to all emails.   Currently, there is no capability to set this for specific alerts.  &lt;/P&gt;

&lt;P&gt;I highly recommend you create a support case that requests we create this functionality as an enhancement request.  I cannot guarantee it will get added to the product, but I do believe this would be useful functionality and it's great that you bring this up as a customer.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2011 04:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-Scheduled-Search-to-send-out-csv-file-in-email-instead/m-p/29727#M5141</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2011-01-27T04:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Scheduled Search to send out csv file in email instead of inline results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Scheduled-Search-to-send-out-csv-file-in-email-instead/m-p/29728#M5142</link>
      <description>&lt;P&gt;There's another way that I'm using these days: Use the sendemail command to send the files as csv and add it to a search; then schedule the search to run at specific time.
For example:&lt;/P&gt;

&lt;P&gt;"search pattern1" | ..... | table col1,col2... | sendemail to= format=html subject="Your subject" server=testgateway.sample.com sendresults=true inline=false graceful=true&lt;/P&gt;

&lt;P&gt;Two things used here: the table command to tabularize the search results, and the sendemail command.&lt;/P&gt;

&lt;P&gt;You can replace the above sample values with your own values. The key options used in this command are: 'inline=false' and 'graceful=true'. &lt;/P&gt;

&lt;P&gt;If we choose 'inline=false', it automatically will append the results in .csv format (the file will be named splunk-results.csv so you can save it as per your need.&lt;/P&gt;

&lt;P&gt;'graceful=true' this means that Splunk will exit gracefully in case it faces any issue while trying to send the mail.&lt;/P&gt;

&lt;P&gt;For more info on table and sendemail, refer to Splunk help section; it has great examples which you can use.&lt;/P&gt;

&lt;P&gt;Hope that helps.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Mohit Vohra&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2011 12:31:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-Scheduled-Search-to-send-out-csv-file-in-email-instead/m-p/29728#M5142</guid>
      <dc:creator>mohitvohra109</dc:creator>
      <dc:date>2011-03-16T12:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Scheduled Search to send out csv file in email instead of inline results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Scheduled-Search-to-send-out-csv-file-in-email-instead/m-p/29729#M5143</link>
      <description>&lt;P&gt;Worked like a charm. Thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2011 21:36:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-Scheduled-Search-to-send-out-csv-file-in-email-instead/m-p/29729#M5143</guid>
      <dc:creator>anantshah</dc:creator>
      <dc:date>2011-04-01T21:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Scheduled Search to send out csv file in email instead of inline results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Scheduled-Search-to-send-out-csv-file-in-email-instead/m-p/29730#M5144</link>
      <description>&lt;P&gt;Can i configure it to send email only if there are results?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2011 01:08:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-Scheduled-Search-to-send-out-csv-file-in-email-instead/m-p/29730#M5144</guid>
      <dc:creator>anantshah</dc:creator>
      <dc:date>2011-04-02T01:08:48Z</dc:date>
    </item>
  </channel>
</rss>

