<?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: Retrive only the key object from the json output in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483632#M82852</link>
    <description>&lt;P&gt;Thanks @JyotiP&lt;/P&gt;

&lt;P&gt;It would be better if a single sample event from &lt;CODE&gt;_raw&lt;/CODE&gt;. Like below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; {"trx":[{"type":"y","src":"x","htlids":[{"htlid":"XX123456","errCode":"1257"}]},{"type":"y","src":"x","htlids":[{"htlid":"YY123456","errCode":"1257"}]}],"ClientId":245860224012578433,"SeqNb":3102,"Type":"RsMonitor","Epoch":1568798767432}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Another question:&lt;BR /&gt;
Your all mentioend fields &lt;CODE&gt;addNewOrder,login,navigateReport,navigateOrder,openNewOrder,openUrl&lt;/CODE&gt; have other fields. Do you need any specific fields like &lt;CODE&gt;dur&lt;/CODE&gt; from these fields?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2019 06:02:19 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2019-09-19T06:02:19Z</dc:date>
    <item>
      <title>Retrive only the key object from the json output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483626#M82846</link>
      <description>&lt;P&gt;I have the following output and  I want to extract only the key value of the JSON and those are addNewOrder,navigateReport etc in a table.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Details: {
    addNewOrder: {
       dur: 7706ms
       end: Wed Sep 18 2019 14:38:48 GMT+0530 (India Standard Time)
       navigationAPIData: {
         connectEnd: 1568797694032
         connectStart: 1568797694032
         domComplete: 1568797694775
         domContentLoadedEventEnd: 1568797694542
         domContentLoadedEventStart: 1568797694542
         domInteractive: 1568797694542
         domLoading: 1568797694255
         domainLookupEnd: 1568797694032
         domainLookupStart: 1568797694032
         fetchStart: 1568797694032
       }
        start: Wed Sep 18 2019 14:38:40 GMT+0530 (India Standard Time)
     }
    login: {
       dur: 7046ms
       end: Wed Sep 18 2019 14:38:17 GMT+0530 (India Standard Time)
       navigationAPIData: { 
       connectEnd: 1568797694032
         connectStart: 1568797694032
         domComplete: 1568797694775
         domContentLoadedEventEnd: 1568797694542
         domContentLoadedEventStart: 1568797694542
         domInteractive: 1568797694542
         domLoading: 1568797694255
         domainLookupEnd: 1568797694032
         domainLookupStart: 1568797694032
         fetchStart: 1568797694032
       }
       }
    navigateReport: { 
       dur: 2804ms
       end: Wed Sep 18 2019 14:38:28 GMT+0530 (India Standard Time)
     }   
    navigateOrder: {
       dur: 1804ms
       end: Wed Sep 18 2019 14:38:23 GMT+0530 (India Standard Time)
       }
    openNewOrder: { 
       dur: 1700ms
       end: Wed Sep 18 2019 14:38:33 GMT+0530 (India Standard Time)
       }
    openUrl: {
       dur: 3011ms
       end: Wed Sep 18 2019 14:38:00 GMT+0530 (India Standard Time)
       }
    }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Sep 2019 12:15:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483626#M82846</guid>
      <dc:creator>JyotiP</dc:creator>
      <dc:date>2019-09-18T12:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive only the key object from the json output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483627#M82847</link>
      <description>&lt;P&gt;@JyotiP &lt;BR /&gt;
Can you please share valid JSON event and your expected output?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 12:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483627#M82847</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-09-18T12:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive only the key object from the json output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483628#M82848</link>
      <description>&lt;P&gt;@kamlesh_vaghela the JSON output is too big, I only want to select the Kep value and put them in the table,&lt;BR /&gt;
addNewOrder,login,navigateReport,navigateOrder,openNewOrder,openUrl&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 12:27:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483628#M82848</guid>
      <dc:creator>JyotiP</dc:creator>
      <dc:date>2019-09-18T12:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive only the key object from the json output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483629#M82849</link>
      <description>&lt;P&gt;have u tried field extractions with regex like : dur:\s(?(\d{1,4}))&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 12:47:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483629#M82849</guid>
      <dc:creator>klischatb</dc:creator>
      <dc:date>2019-09-18T12:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive only the key object from the json output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483630#M82850</link>
      <description>&lt;P&gt;Tried, but not working&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 12:55:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483630#M82850</guid>
      <dc:creator>JyotiP</dc:creator>
      <dc:date>2019-09-18T12:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive only the key object from the json output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483631#M82851</link>
      <description>&lt;P&gt;@kamlesh_vaghela I have updated the JSON&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 12:57:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483631#M82851</guid>
      <dc:creator>JyotiP</dc:creator>
      <dc:date>2019-09-18T12:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive only the key object from the json output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483632#M82852</link>
      <description>&lt;P&gt;Thanks @JyotiP&lt;/P&gt;

&lt;P&gt;It would be better if a single sample event from &lt;CODE&gt;_raw&lt;/CODE&gt;. Like below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; {"trx":[{"type":"y","src":"x","htlids":[{"htlid":"XX123456","errCode":"1257"}]},{"type":"y","src":"x","htlids":[{"htlid":"YY123456","errCode":"1257"}]}],"ClientId":245860224012578433,"SeqNb":3102,"Type":"RsMonitor","Epoch":1568798767432}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Another question:&lt;BR /&gt;
Your all mentioend fields &lt;CODE&gt;addNewOrder,login,navigateReport,navigateOrder,openNewOrder,openUrl&lt;/CODE&gt; have other fields. Do you need any specific fields like &lt;CODE&gt;dur&lt;/CODE&gt; from these fields?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 06:02:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483632#M82852</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-09-19T06:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive only the key object from the json output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483633#M82853</link>
      <description>&lt;P&gt;@kamlesh_vaghela nope I want to select only the above-mentioned value in a table.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 10:47:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483633#M82853</guid>
      <dc:creator>JyotiP</dc:creator>
      <dc:date>2019-09-19T10:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive only the key object from the json output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483634#M82854</link>
      <description>&lt;P&gt;Check out extended examples number 2 &amp;amp; 3 here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Spath"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Spath&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You need to spath, rename, zip, and then mvexpand.  It's tricky but well documented.  Follow the steps.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 11:20:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrive-only-the-key-object-from-the-json-output/m-p/483634#M82854</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-09-19T11:20:58Z</dc:date>
    </item>
  </channel>
</rss>

