<?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: Extract JSON data to chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117054#M31169</link>
    <description>&lt;P&gt;Would you like to give me a clear explanation or a sample&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jun 2014 10:36:48 GMT</pubDate>
    <dc:creator>ndkhoiits</dc:creator>
    <dc:date>2014-06-24T10:36:48Z</dc:date>
    <item>
      <title>Extract JSON data to chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117047#M31162</link>
      <description>&lt;P&gt;Today, I have to create a chart from log in json format. The log is something like that:&lt;/P&gt;

&lt;P&gt;Expired token in next 3 days {"data":[{"date":"2014-06-25","Site1":100,"Site2":23,"Site3":133},{"date":"2014-06-26","Site1":200,"Site2":223,"Site3":232},{"date":"2014-06-24","Site1":150,"Site2":342,"Site3":422}]}&lt;/P&gt;

&lt;P&gt;Output should be a chart (column chart) which contains information about date and number of expired token for each site&lt;/P&gt;

&lt;P&gt;The log will show the list of expire token from 3 sites for next 3 days. The json format can be changed to whatever for suitable.&lt;/P&gt;

&lt;P&gt;Anyone please help to give me any suggestion.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2014 09:21:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117047#M31162</guid>
      <dc:creator>ndkhoiits</dc:creator>
      <dc:date>2014-06-24T09:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON data to chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117048#M31163</link>
      <description>&lt;P&gt;The chart can be something like that &lt;BR /&gt;
&lt;A href="https://docs.google.com/file/d/0B_zzVMkc4PNJN1p3LU1fMGZ4cWs"&gt;https://docs.google.com/file/d/0B_zzVMkc4PNJN1p3LU1fMGZ4cWs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2014 09:23:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117048#M31163</guid>
      <dc:creator>ndkhoiits</dc:creator>
      <dc:date>2014-06-24T09:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON data to chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117049#M31164</link>
      <description>&lt;P&gt;Hi ndkhoiits,&lt;/P&gt;

&lt;P&gt;take a look at the docs about the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.1/SearchReference/Spath#Examples"&gt;spath&lt;/A&gt; command example 3, this will show you how to use &lt;CODE&gt;spath&lt;/CODE&gt; on JSON logs.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2014 09:48:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117049#M31164</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-24T09:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON data to chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117050#M31165</link>
      <description>&lt;P&gt;Thanks for your answer, however in my requirement there are 3 sites which need to be included in the report, so I don't know how to use mvzip in this case&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2014 09:54:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117050#M31165</guid>
      <dc:creator>ndkhoiits</dc:creator>
      <dc:date>2014-06-24T09:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON data to chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117051#M31166</link>
      <description>&lt;P&gt;your sites names are Site1, Site2 and Site3 in the example JSON, so no need for mvzip... or are those site names all equal and this example is your real world data?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2014 10:03:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117051#M31166</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-24T10:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON data to chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117052#M31167</link>
      <description>&lt;P&gt;This example is my real world data&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2014 10:31:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117052#M31167</guid>
      <dc:creator>ndkhoiits</dc:creator>
      <dc:date>2014-06-24T10:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON data to chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117053#M31168</link>
      <description>&lt;P&gt;still no need for mvzip because you have per date a Site1, Site2 and Site3 entry. Personally I would add a &lt;CODE&gt;Name=Site[1|2|3]&lt;/CODE&gt; key=value pair and a &lt;CODE&gt;count=value&lt;/CODE&gt; per date in the JSON, much easier to handle&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2014 10:35:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117053#M31168</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-24T10:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON data to chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117054#M31169</link>
      <description>&lt;P&gt;Would you like to give me a clear explanation or a sample&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2014 10:36:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117054#M31169</guid>
      <dc:creator>ndkhoiits</dc:creator>
      <dc:date>2014-06-24T10:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON data to chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117055#M31170</link>
      <description>&lt;P&gt;based on your provided data:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;{"data":&lt;BR /&gt;
  [&lt;BR /&gt;
   {"date":"2014-06-25","Name":"Site1":"Count":"100"},&lt;BR /&gt;
   {"date":"2014-06-25","Name":"Site2":"Count":"23"},&lt;BR /&gt;
   {"date":"2014-06-25","Name":"Site3":"Count":"133"}&lt;BR /&gt;
  ]&lt;BR /&gt;
 }&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2014 10:41:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-to-chart/m-p/117055#M31170</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-24T10:41:24Z</dc:date>
    </item>
  </channel>
</rss>

