<?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 Exporting in JSON in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Exporting-in-JSON/m-p/40933#M857</link>
    <description>&lt;P&gt;outputcsv exports data in csv format. Can I output it to .json format ? &lt;/P&gt;</description>
    <pubDate>Tue, 31 Aug 2010 23:41:10 GMT</pubDate>
    <dc:creator>chipmunk</dc:creator>
    <dc:date>2010-08-31T23:41:10Z</dc:date>
    <item>
      <title>Exporting in JSON</title>
      <link>https://community.splunk.com/t5/Reporting/Exporting-in-JSON/m-p/40933#M857</link>
      <description>&lt;P&gt;outputcsv exports data in csv format. Can I output it to .json format ? &lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2010 23:41:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Exporting-in-JSON/m-p/40933#M857</guid>
      <dc:creator>chipmunk</dc:creator>
      <dc:date>2010-08-31T23:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting in JSON</title>
      <link>https://community.splunk.com/t5/Reporting/Exporting-in-JSON/m-p/40934#M858</link>
      <description>&lt;P&gt;There is no analogous search command to write a JSON formatted file from within a search itself. You can run a search using the REST API (&lt;A href="http://www.splunk.com/base/Documentation/latest/Developer/RESTIntro" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/Developer/RESTIntro&lt;/A&gt;) and fetch the results in JSON format using the argument &lt;CODE&gt;output_mode=json&lt;/CODE&gt; from the events, results or results_preview resources.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2010 23:58:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Exporting-in-JSON/m-p/40934#M858</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-31T23:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting in JSON</title>
      <link>https://community.splunk.com/t5/Reporting/Exporting-in-JSON/m-p/40935#M859</link>
      <description>&lt;P&gt;I just wrote an app that can create JSON in-line: &lt;A href="https://splunkbase.splunk.com/app/3540/"&gt;https://splunkbase.splunk.com/app/3540/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;With this you could convert _raw (and any other fields not from _raw) to JSON, then export a "csv" with one field containing the JSON.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | mkjson outputfield=json | table json | outputcsv mycsv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Be sure to read the Usage guide (&lt;A href="https://github.com/doksu/TA-jsontools/wiki#usage-1"&gt;https://github.com/doksu/TA-jsontools/wiki#usage-1&lt;/A&gt;) which has a range of examples.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 04:38:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Exporting-in-JSON/m-p/40935#M859</guid>
      <dc:creator>doksu</dc:creator>
      <dc:date>2017-04-07T04:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting in JSON</title>
      <link>https://community.splunk.com/t5/Reporting/Exporting-in-JSON/m-p/40936#M860</link>
      <description>&lt;P&gt;@doksu &lt;/P&gt;

&lt;P&gt;I have a query where we are trying to output the results into csv but now we would like to have that in json format.&lt;/P&gt;

&lt;P&gt;Can we do that through this app?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 05:03:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Exporting-in-JSON/m-p/40936#M860</guid>
      <dc:creator>manish_singh_77</dc:creator>
      <dc:date>2019-11-20T05:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting in JSON</title>
      <link>https://community.splunk.com/t5/Reporting/Exporting-in-JSON/m-p/40937#M861</link>
      <description>&lt;P&gt;I'm not sure I understand the question. Splunk cannot write to a json file, however you can produce JSON using the &lt;CODE&gt;mkjson&lt;/CODE&gt; command as seen above then pipe that to another command like &lt;CODE&gt;outputcsv&lt;/CODE&gt; to dump that to disk (JSON inside a CSV).&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 03:38:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Exporting-in-JSON/m-p/40937#M861</guid>
      <dc:creator>doksu</dc:creator>
      <dc:date>2020-01-10T03:38:41Z</dc:date>
    </item>
  </channel>
</rss>

