<?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 JSON object parameters that change based on search variable? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-JSON-object-parameters-that-change-based-on/m-p/367705#M66828</link>
    <description>&lt;P&gt;Did you try setting &lt;CODE&gt;KV_MODE=JSON&lt;/CODE&gt; in the corresponding sourcetype in props.conf?&lt;BR /&gt;
That should actually extract fields from JSON on it's own.&lt;/P&gt;

&lt;P&gt;To access certain fields without changing KV_MODE, take a look at &lt;CODE&gt;| spath&lt;/CODE&gt; here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/SearchReference/Spath"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/SearchReference/Spath&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Apr 2018 19:57:31 GMT</pubDate>
    <dc:creator>xpac</dc:creator>
    <dc:date>2018-04-30T19:57:31Z</dc:date>
    <item>
      <title>How to extract JSON object parameters that change based on search variable?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-JSON-object-parameters-that-change-based-on/m-p/367704#M66827</link>
      <description>&lt;P&gt;Hi, quite a beginner here with Splunk. Is there a way to simply extract all parameters in below JSON object? The parameters returned can change based on partner. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Search: host=tp* index=pie *Avianca* OR *AFKLM* OR *British* OR *Etihad* OR *Sears* OR *IHG* OR *JETBLUE* OR *JET* OR *CARLSON* OR *EMirates* OR *Atlantic* MemberValidation RSP_JSON

&amp;lt;2018-04-29 23:04:18,658&amp;gt; TR0414012531-675696 [0e775a48ffdb4b61ab03c6af6785805d]: [RSP_JSON] [/JetBlue_PointsCore/JetBlue/MemberValidation] {
  "membershipLevel": "",
  "memberId": "",
  "status": "",
  "partnerResponseMessage": "",
  "firstName": "",
  "lastName": "",
  "accountStatus": "",
  "membershipNumber": "",
  "balance": ,
  "partnerResponseCode": "",
  "email": "",
  "accountCreationDate": "",
  "stage": ""
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Apr 2018 03:21:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-JSON-object-parameters-that-change-based-on/m-p/367704#M66827</guid>
      <dc:creator>mannkhor</dc:creator>
      <dc:date>2018-04-30T03:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract JSON object parameters that change based on search variable?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-JSON-object-parameters-that-change-based-on/m-p/367705#M66828</link>
      <description>&lt;P&gt;Did you try setting &lt;CODE&gt;KV_MODE=JSON&lt;/CODE&gt; in the corresponding sourcetype in props.conf?&lt;BR /&gt;
That should actually extract fields from JSON on it's own.&lt;/P&gt;

&lt;P&gt;To access certain fields without changing KV_MODE, take a look at &lt;CODE&gt;| spath&lt;/CODE&gt; here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/SearchReference/Spath"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/SearchReference/Spath&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:57:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-JSON-object-parameters-that-change-based-on/m-p/367705#M66828</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-04-30T19:57:31Z</dc:date>
    </item>
  </channel>
</rss>

