<?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 How to create a scheduled report for CSV export in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-scheduled-report-for-CSV-export/m-p/410471#M72723</link>
    <description>&lt;P&gt;Hi All! &lt;BR /&gt;
I have following query, I want to schedule a report for this for every night. &lt;BR /&gt;
When I export this to CSV after searching the fields get all mixed up. &lt;BR /&gt;
Any idea on how to rewrite this to get similar results but would work well in CSV?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=rapid7  nexpose_severity=Severe OR nexpose_severity=Critical "tag::eventtype"=vulnerability site_id=64 OR site_id=55 OR site_id=63 OR site_id=62 | eval site_info=case(site_id==63,"Public IPs:  Corp IT 2", site_id==64 ,"Public IPs:3", site_id==62,"Public IPs:  Corp 4",site_id==23,"Corp - Office - 1",site_id==60,"Rapid7 Insight Agents", site_id=55,"Public IPs:  5")| stats values(signature) AS "Vulnerabilities", values(cve) AS "CVE", values(nexpose_severity) AS "Severity", values(site_info) AS "Site ID", values(date_added) AS "DATE_ADDED" distinct_count(cve) AS distinct_count_vulnerabilities by ip | sort -distinct_count_vulnerabilities
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance for your help !&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jun 2019 18:18:53 GMT</pubDate>
    <dc:creator>dmenon</dc:creator>
    <dc:date>2019-06-07T18:18:53Z</dc:date>
    <item>
      <title>How to create a scheduled report for CSV export</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-scheduled-report-for-CSV-export/m-p/410471#M72723</link>
      <description>&lt;P&gt;Hi All! &lt;BR /&gt;
I have following query, I want to schedule a report for this for every night. &lt;BR /&gt;
When I export this to CSV after searching the fields get all mixed up. &lt;BR /&gt;
Any idea on how to rewrite this to get similar results but would work well in CSV?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=rapid7  nexpose_severity=Severe OR nexpose_severity=Critical "tag::eventtype"=vulnerability site_id=64 OR site_id=55 OR site_id=63 OR site_id=62 | eval site_info=case(site_id==63,"Public IPs:  Corp IT 2", site_id==64 ,"Public IPs:3", site_id==62,"Public IPs:  Corp 4",site_id==23,"Corp - Office - 1",site_id==60,"Rapid7 Insight Agents", site_id=55,"Public IPs:  5")| stats values(signature) AS "Vulnerabilities", values(cve) AS "CVE", values(nexpose_severity) AS "Severity", values(site_info) AS "Site ID", values(date_added) AS "DATE_ADDED" distinct_count(cve) AS distinct_count_vulnerabilities by ip | sort -distinct_count_vulnerabilities
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance for your help !&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 18:18:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-scheduled-report-for-CSV-export/m-p/410471#M72723</guid>
      <dc:creator>dmenon</dc:creator>
      <dc:date>2019-06-07T18:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a scheduled report for CSV export</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-scheduled-report-for-CSV-export/m-p/410472#M72724</link>
      <description>&lt;P&gt;You could create a lookup file that you then schedule your search and have it appended with:&lt;/P&gt;

&lt;P&gt;| table  field1 field2 field3 etc   | outputlookup &lt;/P&gt;

&lt;P&gt;That way your search results would be written to the csv behind the lookup at every run.&lt;/P&gt;

&lt;P&gt;If it's a formatting issue, can you explain more about what you mean when you say "The fields get all mixed up"?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 19:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-scheduled-report-for-CSV-export/m-p/410472#M72724</guid>
      <dc:creator>martynoconnor</dc:creator>
      <dc:date>2019-06-07T19:56:12Z</dc:date>
    </item>
  </channel>
</rss>

