<?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 keys and values from the JSON data from data received from the Modular Input? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-keys-and-values-from-the-JSON-data-from-data/m-p/437418#M76296</link>
    <description>&lt;P&gt;Also make sure you aren't in fast mode.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 04:59:03 GMT</pubDate>
    <dc:creator>chrisyounger</dc:creator>
    <dc:date>2019-03-12T04:59:03Z</dc:date>
    <item>
      <title>How to extract keys and values from the JSON data from data received from the Modular Input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-keys-and-values-from-the-JSON-data-from-data/m-p/437416#M76294</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Sorry I know this has been asked a million and one times here before but none of the previous answers seem to work for me.&lt;/P&gt;

&lt;P&gt;I'm writing a modular input to collect data from another system using it's API. The modular input is working, it's getting the data, it's passing it into Splunk via XML streaming. It even seems like Splunk recognises it's JSON data (I can search for it and the output is nicely formatted as JSON). But the keys and values aren't being extracted into fields - which is really annoying because I can't search the data via a key value immediately.&lt;/P&gt;

&lt;P&gt;I've tried adding "INDEXED_EXTRACTIONS = json" to the props.conf in default in the app on the heavy forwarder it's deployed on - but that's made no difference. I also tried adding "kv_mode = json" in the props.conf on the search head and that didn't help either.&lt;/P&gt;

&lt;P&gt;Ideally I'd like to make it so this modular input causes Splunk to extract the key-value pairs from the data as it's indexed.&lt;/P&gt;

&lt;P&gt;Is this possible? Or should I be attempting this in another way?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Eddie&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:40:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-keys-and-values-from-the-JSON-data-from-data/m-p/437416#M76294</guid>
      <dc:creator>marrette</dc:creator>
      <dc:date>2020-09-29T23:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract keys and values from the JSON data from data received from the Modular Input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-keys-and-values-from-the-JSON-data-from-data/m-p/437417#M76295</link>
      <description>&lt;P&gt;Both of these attempts should be correct to extract keys.  I recommend &lt;CODE&gt;KV_MODE = json&lt;/CODE&gt; becuase Splunk's strength is that its a search-time platform.  If its doing the nice formatting, then that means its valid JSON. Might be worth using btool to check the sourcetype is definitely &lt;CODE&gt;KV_MODE = json&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 03:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-keys-and-values-from-the-JSON-data-from-data/m-p/437417#M76295</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-03-12T03:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract keys and values from the JSON data from data received from the Modular Input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-keys-and-values-from-the-JSON-data-from-data/m-p/437418#M76296</link>
      <description>&lt;P&gt;Also make sure you aren't in fast mode.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 04:59:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-keys-and-values-from-the-JSON-data-from-data/m-p/437418#M76296</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-03-12T04:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract keys and values from the JSON data from data received from the Modular Input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-keys-and-values-from-the-JSON-data-from-data/m-p/437419#M76297</link>
      <description>&lt;P&gt;Either you use &lt;CODE&gt;INDEXED_EXTRACTIONS&lt;/CODE&gt; or &lt;CODE&gt;KV_MODE&lt;/CODE&gt;, but not both. Set &lt;CODE&gt;KV_MODE = none&lt;/CODE&gt; on your Search Head's props.conf if you really want to have indexed fields.&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 11:52:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-keys-and-values-from-the-JSON-data-from-data/m-p/437419#M76297</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2019-03-12T11:52:22Z</dc:date>
    </item>
  </channel>
</rss>

