<?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 Re: splunk dispatch per_results_alert tmp_0.csv file in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/splunk-dispatch-per-results-alert-tmp-0-csv-file/m-p/155203#M2537</link>
    <description>&lt;P&gt;AWESOME! Thanks so much.. We've been driving ourselves crazy trying to figure this out.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2013 15:28:16 GMT</pubDate>
    <dc:creator>aaronkorn</dc:creator>
    <dc:date>2013-11-25T15:28:16Z</dc:date>
    <item>
      <title>splunk dispatch per_results_alert tmp_0.csv file</title>
      <link>https://community.splunk.com/t5/Alerting/splunk-dispatch-per-results-alert-tmp-0-csv-file/m-p/155201#M2535</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;In the tmp_0.csv file which contains details about the alert that fired, is there any consistency or default order of the columns? I would imagine it would write in the same columnar output as designed in the search but it seems to vary. The reason I am curious is because we are working on a script which takes the $searchPath, $ARGV[7] passed via the alert to find the values of the search and pass them through an snmp trap. If the columns wont be consistent then this might now work properly. Any help is appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2013 15:00:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/splunk-dispatch-per-results-alert-tmp-0-csv-file/m-p/155201#M2535</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2013-11-25T15:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: splunk dispatch per_results_alert tmp_0.csv file</title>
      <link>https://community.splunk.com/t5/Alerting/splunk-dispatch-per-results-alert-tmp-0-csv-file/m-p/155202#M2536</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I found that it uses alphabetical order regardless of any sorting of fields, or the use of the fields commands in the query.&lt;/P&gt;

&lt;P&gt;What we do is use eval to format the output fields in a way, that we consistently know whats on the csv file. Using this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search ... | eval 1=host | eval 2=5 | eval 3 = description | table 1,2,3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So we are sure that we are receiving this information in the csv file:&lt;BR /&gt;
host, severity, alert description&lt;/P&gt;

&lt;P&gt;And using this format on every alert we create, we can be sure that the script will work as expected&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2013 15:10:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/splunk-dispatch-per-results-alert-tmp-0-csv-file/m-p/155202#M2536</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2013-11-25T15:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: splunk dispatch per_results_alert tmp_0.csv file</title>
      <link>https://community.splunk.com/t5/Alerting/splunk-dispatch-per-results-alert-tmp-0-csv-file/m-p/155203#M2537</link>
      <description>&lt;P&gt;AWESOME! Thanks so much.. We've been driving ourselves crazy trying to figure this out.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2013 15:28:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/splunk-dispatch-per-results-alert-tmp-0-csv-file/m-p/155203#M2537</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2013-11-25T15:28:16Z</dc:date>
    </item>
  </channel>
</rss>

