<?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: can't extract field in json in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/can-t-extract-field-in-json/m-p/140225#M38685</link>
    <description>&lt;P&gt;Is this the actual json data? I tried linting it and it failed. &lt;A href="http://jsonlint.com/"&gt;http://jsonlint.com/&lt;/A&gt; . Also, have you tried using KV_MODE=JSON in&lt;CODE&gt;props.conf&lt;/CODE&gt; ?&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2015 15:34:50 GMT</pubDate>
    <dc:creator>aljohnson_splun</dc:creator>
    <dc:date>2015-07-28T15:34:50Z</dc:date>
    <item>
      <title>can't extract field in json</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-t-extract-field-in-json/m-p/140220#M38680</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I try to extract fields fron this json. I've tried with jsonkv and spath and it looks like that ' does generate problem during the extraction. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{'idFromSource':'344064','id':{'tmonline-us':{'id':'344064'}},'name':{'en-us':'NOVENUE'},'city':{'id':{},'name':{}},'timezone':'America/Los_Angeles','dma':[],'market':[],'image':[],'isTest':false,'source':'tmonline-us','idFromSource':'344064'}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any suggestion ?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 14:55:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-t-extract-field-in-json/m-p/140220#M38680</guid>
      <dc:creator>efrenette11</dc:creator>
      <dc:date>2015-07-28T14:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: can't extract field in json</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-t-extract-field-in-json/m-p/140221#M38681</link>
      <description>&lt;P&gt;When ingested in Splunk what sourcetype definition you've used? (props.conf on Indexer/Heavy Forwarder)&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 15:15:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-t-extract-field-in-json/m-p/140221#M38681</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-07-28T15:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: can't extract field in json</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-t-extract-field-in-json/m-p/140222#M38682</link>
      <description>&lt;P&gt;In fact there's no specific source type defined as a log loune is not all in json format. Only the payload has json as format.&lt;/P&gt;

&lt;P&gt;Is a result this request.&lt;BR /&gt;
host="*cops.jetdev2.syseng.tmcs" appCode="jms.send" | table payload&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 15:20:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-t-extract-field-in-json/m-p/140222#M38682</guid>
      <dc:creator>efrenette11</dc:creator>
      <dc:date>2015-07-28T15:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: can't extract field in json</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-t-extract-field-in-json/m-p/140223#M38683</link>
      <description>&lt;P&gt;I'm currently tryin to replace ' with " in the payload, but I always obtain UNBALACED QUOTES as error message.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 15:21:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-t-extract-field-in-json/m-p/140223#M38683</guid>
      <dc:creator>efrenette11</dc:creator>
      <dc:date>2015-07-28T15:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: can't extract field in json</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-t-extract-field-in-json/m-p/140224#M38684</link>
      <description>&lt;P&gt;I think the single quotes are causing issues. Give this a try:-  (replacing single quotes with double quotes)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="*cops.jetdev2.syseng.tmcs" appCode="jms.send" | table payload | eval payload=replace(payload,"'","\"") | spath input=payload
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jul 2015 15:34:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-t-extract-field-in-json/m-p/140224#M38684</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-07-28T15:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: can't extract field in json</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-t-extract-field-in-json/m-p/140225#M38685</link>
      <description>&lt;P&gt;Is this the actual json data? I tried linting it and it failed. &lt;A href="http://jsonlint.com/"&gt;http://jsonlint.com/&lt;/A&gt; . Also, have you tried using KV_MODE=JSON in&lt;CODE&gt;props.conf&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 15:34:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-t-extract-field-in-json/m-p/140225#M38685</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2015-07-28T15:34:50Z</dc:date>
    </item>
  </channel>
</rss>

