<?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 to extract JSON into a chart? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-JSON-into-a-chart/m-p/339125#M62567</link>
    <description>&lt;P&gt;Hey thanks! I managed to solve it using rex because it's JSON within regular text.&lt;/P&gt;

&lt;P&gt;My solution is similiar to &lt;A href="https://answers.splunk.com/answers/466868/how-to-use-rex-to-extract-json-text-in-msg-keyvalu.html"&gt;this&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;But instead of displaying in table I did,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "status\":\"(?P&amp;lt;msg&amp;gt;.[^\"\"]*)" | chart count msg
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 17 Apr 2018 15:03:52 GMT</pubDate>
    <dc:creator>goe</dc:creator>
    <dc:date>2018-04-17T15:03:52Z</dc:date>
    <item>
      <title>How to extract JSON into a chart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-JSON-into-a-chart/m-p/339123#M62565</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have JSON string in the following format,&lt;/P&gt;

&lt;P&gt;{"status":"503"}&lt;/P&gt;

&lt;P&gt;and I would like to create a pie chart with the values of status, the number of occurrences for a time period.   &lt;/P&gt;

&lt;P&gt;So far I create this and I think I am close,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ERROR | spath output=status path=status | timechart count as "Error" by status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Apr 2018 08:34:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-JSON-into-a-chart/m-p/339123#M62565</guid>
      <dc:creator>goe</dc:creator>
      <dc:date>2018-04-17T08:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract JSON into a chart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-JSON-into-a-chart/m-p/339124#M62566</link>
      <description>&lt;P&gt;Can you try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval abc="{\"status\":\"503\"}"  | spath input=abc output=status path=status | timechart count by status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Apr 2018 14:26:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-JSON-into-a-chart/m-p/339124#M62566</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-17T14:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract JSON into a chart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-JSON-into-a-chart/m-p/339125#M62567</link>
      <description>&lt;P&gt;Hey thanks! I managed to solve it using rex because it's JSON within regular text.&lt;/P&gt;

&lt;P&gt;My solution is similiar to &lt;A href="https://answers.splunk.com/answers/466868/how-to-use-rex-to-extract-json-text-in-msg-keyvalu.html"&gt;this&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;But instead of displaying in table I did,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "status\":\"(?P&amp;lt;msg&amp;gt;.[^\"\"]*)" | chart count msg
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Apr 2018 15:03:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-JSON-into-a-chart/m-p/339125#M62567</guid>
      <dc:creator>goe</dc:creator>
      <dc:date>2018-04-17T15:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract JSON into a chart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-JSON-into-a-chart/m-p/339126#M62568</link>
      <description>&lt;P&gt;@goe, glad you were able to work out your issue. Please accept this answer to close the question. If possible, if you can add the solution (by editing this Answer), that'll help other Splunkers with similar issues.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 17:50:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-JSON-into-a-chart/m-p/339126#M62568</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-17T17:50:25Z</dc:date>
    </item>
  </channel>
</rss>

