<?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 Convert JSON to table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Convert-JSON-to-table/m-p/320362#M95749</link>
    <description>&lt;P&gt;I tried looking up for a solution and went through almost all suggestions. None worked for me. I have the following json log that i want to convert to table. This is the raw representation for the json. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"timestamp": "2017-05-28T19:34:15.698Z",
    "F_A": "valuefor_F_A",
    "F_B": "valuefor_F_B",
    "F_C": "{\"x\":\"valuefor_x\",\"y\":\"valuefor_y\",\"z\":\"valuefor_z\"}",
    "F_D": "valuefor_F_D"
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Field F_C contains most of the info which i want to see in a table. I also need the timestamp in the table.  So basically here is what i am looking for &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;x                   y                             z                  timestamp
=====================================================================
valuefor_x         valuefor_y       valuefor_z         2017-05-28T19:34:15.698Z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2017 01:59:56 GMT</pubDate>
    <dc:creator>splunk_skr</dc:creator>
    <dc:date>2017-05-29T01:59:56Z</dc:date>
    <item>
      <title>Convert JSON to table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-JSON-to-table/m-p/320362#M95749</link>
      <description>&lt;P&gt;I tried looking up for a solution and went through almost all suggestions. None worked for me. I have the following json log that i want to convert to table. This is the raw representation for the json. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"timestamp": "2017-05-28T19:34:15.698Z",
    "F_A": "valuefor_F_A",
    "F_B": "valuefor_F_B",
    "F_C": "{\"x\":\"valuefor_x\",\"y\":\"valuefor_y\",\"z\":\"valuefor_z\"}",
    "F_D": "valuefor_F_D"
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Field F_C contains most of the info which i want to see in a table. I also need the timestamp in the table.  So basically here is what i am looking for &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;x                   y                             z                  timestamp
=====================================================================
valuefor_x         valuefor_y       valuefor_z         2017-05-28T19:34:15.698Z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 01:59:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-JSON-to-table/m-p/320362#M95749</guid>
      <dc:creator>splunk_skr</dc:creator>
      <dc:date>2017-05-29T01:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert JSON to table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-JSON-to-table/m-p/320363#M95750</link>
      <description>&lt;P&gt;The timestamp should be auto recognized:&lt;/P&gt;

&lt;P&gt;Here's my "down and dirty, cell phone typed answer":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... | rex 'x\\":\\"(?&amp;lt;x&amp;gt;.+)\\",\\"y\\":\\"(?&amp;lt;y&amp;gt;.+)\\",\\"z\\":\\"(?&amp;lt;z&amp;gt;.+)\\"}"' | table x y z _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 May 2017 02:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-JSON-to-table/m-p/320363#M95750</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-05-29T02:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert JSON to table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-JSON-to-table/m-p/320364#M95751</link>
      <description>&lt;P&gt;Thanks,,there are syntactical errors..trying to fix now.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 04:45:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-JSON-to-table/m-p/320364#M95751</guid>
      <dc:creator>splunk_skr</dc:creator>
      <dc:date>2017-05-29T04:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Convert JSON to table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-JSON-to-table/m-p/320365#M95752</link>
      <description>&lt;P&gt;Unable to make it work. any other suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 05:11:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-JSON-to-table/m-p/320365#M95752</guid>
      <dc:creator>splunk_skr</dc:creator>
      <dc:date>2017-05-29T05:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Convert JSON to table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-JSON-to-table/m-p/320366#M95753</link>
      <description>&lt;P&gt;Change the double slashes to triple slashes, if that don't work make them quad slashes.  Sorry I couldn't test first, but I'm far away from my computer.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 13:17:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-JSON-to-table/m-p/320366#M95753</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-05-29T13:17:26Z</dc:date>
    </item>
  </channel>
</rss>

