<?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: How do I output to text (csv or json) per-minute that aggregates continuously in real time? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-output-to-text-csv-or-json-per-minute-that-aggregates/m-p/397431#M70844</link>
    <description>&lt;P&gt;Thanks but that answer doesn't adress the continuous aspect.&lt;BR /&gt;
I have "...| bin _time span=1m | table _time, A, B | outputcsv append-true myfile" and that works when I run it as a search directly in the UI. Saving it as a report with a cron schedule of "* * * * *" doesn't appear to do anything. No csv is generated. The outputcsv part appears to get stripped off. &lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2019 07:54:07 GMT</pubDate>
    <dc:creator>gerberm</dc:creator>
    <dc:date>2019-06-04T07:54:07Z</dc:date>
    <item>
      <title>How do I output to text (csv or json) per-minute that aggregates continuously in real time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-output-to-text-csv-or-json-per-minute-that-aggregates/m-p/397429#M70842</link>
      <description>&lt;P&gt;How do I output to text (csv or json) per-minute aggregates continuously in real time? The resulting file will be scraped continuously by another tool. &lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 14:26:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-output-to-text-csv-or-json-per-minute-that-aggregates/m-p/397429#M70842</guid>
      <dc:creator>gerberm</dc:creator>
      <dc:date>2019-06-03T14:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output to text (csv or json) per-minute that aggregates continuously in real time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-output-to-text-csv-or-json-per-minute-that-aggregates/m-p/397430#M70843</link>
      <description>&lt;P&gt;In Splunk, write your search which generates the data you need, and then presents it in a tabular format that you'd like the CSV to be in. Then, at the end of your search, use |outputcsv append=true - which will place the csv file on the filesystem in /opt/splunk/var/run&lt;/P&gt;

&lt;P&gt;The documentation is here - &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Outputcsv"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Outputcsv&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The major important difference between using outputlookup and outputcsv is that as the csv grows in size, had you used outputlookup you will be potentially replicating that large file between clustered search heads. If you just want an external tool to monitor it, use outputcsv instead.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Martyn&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 17:03:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-output-to-text-csv-or-json-per-minute-that-aggregates/m-p/397430#M70843</guid>
      <dc:creator>martynoconnor</dc:creator>
      <dc:date>2019-06-03T17:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output to text (csv or json) per-minute that aggregates continuously in real time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-output-to-text-csv-or-json-per-minute-that-aggregates/m-p/397431#M70844</link>
      <description>&lt;P&gt;Thanks but that answer doesn't adress the continuous aspect.&lt;BR /&gt;
I have "...| bin _time span=1m | table _time, A, B | outputcsv append-true myfile" and that works when I run it as a search directly in the UI. Saving it as a report with a cron schedule of "* * * * *" doesn't appear to do anything. No csv is generated. The outputcsv part appears to get stripped off. &lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 07:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-output-to-text-csv-or-json-per-minute-that-aggregates/m-p/397431#M70844</guid>
      <dc:creator>gerberm</dc:creator>
      <dc:date>2019-06-04T07:54:07Z</dc:date>
    </item>
  </channel>
</rss>

