<?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 Parsing JSON keys containing dots with SPATH in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-JSON-keys-containing-dots-with-SPATH/m-p/48628#M9228</link>
    <description>&lt;P&gt;I have a JSON log where the key of an element contains dots. A brief example:&lt;BR /&gt;
{&lt;BR /&gt;
    "a.b.c": {&lt;BR /&gt;
         "d": 10&lt;BR /&gt;
    }&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;Using SPATH function with "a.b.c.d" for the path attribute does not work; but I don't know how to express what in Javascript would be ["a.b.c"].d&lt;/P&gt;

&lt;P&gt;Any idea on how to handle this case?&lt;/P&gt;</description>
    <pubDate>Fri, 31 Aug 2012 13:24:59 GMT</pubDate>
    <dc:creator>gcsolaroli</dc:creator>
    <dc:date>2012-08-31T13:24:59Z</dc:date>
    <item>
      <title>Parsing JSON keys containing dots with SPATH</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-JSON-keys-containing-dots-with-SPATH/m-p/48628#M9228</link>
      <description>&lt;P&gt;I have a JSON log where the key of an element contains dots. A brief example:&lt;BR /&gt;
{&lt;BR /&gt;
    "a.b.c": {&lt;BR /&gt;
         "d": 10&lt;BR /&gt;
    }&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;Using SPATH function with "a.b.c.d" for the path attribute does not work; but I don't know how to express what in Javascript would be ["a.b.c"].d&lt;/P&gt;

&lt;P&gt;Any idea on how to handle this case?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2012 13:24:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-JSON-keys-containing-dots-with-SPATH/m-p/48628#M9228</guid>
      <dc:creator>gcsolaroli</dc:creator>
      <dc:date>2012-08-31T13:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing JSON keys containing dots with SPATH</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-JSON-keys-containing-dots-with-SPATH/m-p/48629#M9229</link>
      <description>&lt;P&gt;Is the whole log JSON?&lt;BR /&gt;
If so, can you set the KV_MODE to json and see if that gives you the fields you need?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;## props.conf
[my_json_data_sourcetype]
KV_MODE = json
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:33:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-JSON-keys-containing-dots-with-SPATH/m-p/48629#M9229</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2012-09-04T15:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing JSON keys containing dots with SPATH</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-JSON-keys-containing-dots-with-SPATH/m-p/48630#M9230</link>
      <description>&lt;P&gt;Log content is already recognized as JSON, and Splunk visualizes matching events as expandable objects (instead of plain grid, as it does when showing regular log entries).&lt;/P&gt;

&lt;P&gt;But the problem is that if I try to use a key containing dots in its name (e.g. "a.b.c") than Splunk is not able to match it against anything, as it consider it as key "a", containing key "b", containing key "c": { "a": { "b": { "c": "value" } }}&lt;/P&gt;

&lt;P&gt;But my log looks like this: { "a.b.c": "value" }&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 17:16:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-JSON-keys-containing-dots-with-SPATH/m-p/48630#M9230</guid>
      <dc:creator>gcsolaroli</dc:creator>
      <dc:date>2012-09-04T17:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing JSON keys containing dots with SPATH</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-JSON-keys-containing-dots-with-SPATH/m-p/48631#M9231</link>
      <description>&lt;P&gt;What fields do you get in the field picker?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 19:40:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-JSON-keys-containing-dots-with-SPATH/m-p/48631#M9231</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2012-09-04T19:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing JSON keys containing dots with SPATH</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-JSON-keys-containing-dots-with-SPATH/m-p/48632#M9232</link>
      <description>&lt;P&gt;What happens if not all the data is JSON?  Can I specify by sourcetype?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2012 17:32:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-JSON-keys-containing-dots-with-SPATH/m-p/48632#M9232</guid>
      <dc:creator>tfong_splunk</dc:creator>
      <dc:date>2012-09-20T17:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing JSON keys containing dots with SPATH</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-JSON-keys-containing-dots-with-SPATH/m-p/48633#M9233</link>
      <description>&lt;P&gt;I would love to know how to do this!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 18:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-JSON-keys-containing-dots-with-SPATH/m-p/48633#M9233</guid>
      <dc:creator>peberhardt</dc:creator>
      <dc:date>2014-07-03T18:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing JSON keys containing dots with SPATH</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-JSON-keys-containing-dots-with-SPATH/m-p/48634#M9234</link>
      <description>&lt;P&gt;Same here.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 17:51:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-JSON-keys-containing-dots-with-SPATH/m-p/48634#M9234</guid>
      <dc:creator>theeansible</dc:creator>
      <dc:date>2017-08-03T17:51:35Z</dc:date>
    </item>
  </channel>
</rss>

