<?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 retrieve the value from json input using splunk query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686346#M234142</link>
    <description>&lt;PRE&gt;index="wireless_retail" source="create_freedom.transactionlog" OPERATION="/FPC/Redemption/Redeem" 
|spath input=REQUEST output=accountNumber path=body.customer{}.accountNumber
|mvexpand accountNumber
|table accountNumber&lt;/PRE&gt;&lt;P&gt;this queryis not displaying any results for me if i run the results are blank&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2024 15:24:30 GMT</pubDate>
    <dc:creator>splunk6</dc:creator>
    <dc:date>2024-05-03T15:24:30Z</dc:date>
    <item>
      <title>how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686321#M234133</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have the below json format.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;REQUEST&lt;/SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;body&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;customer&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;accountNumber&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;DBC50012225699&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;lineNumber&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;5000654224&lt;/SPAN&gt;&lt;SPAN&gt;"},"&lt;/SPAN&gt;&lt;SPAN class=""&gt;equipment&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;serialNumber&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;351643935649535&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;grade&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;A&lt;/SPAN&gt;&lt;SPAN&gt;"},"&lt;/SPAN&gt;&lt;SPAN class=""&gt;redemptionDetails&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;redemptionDate&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;20240502&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;user&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;BMashiana&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;storeNumber&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;WCCA0105&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;dealerNumber&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;GW_STORE&lt;/SPAN&gt;&lt;SPAN&gt;"}},"&lt;/SPAN&gt;&lt;SPAN class=""&gt;headers&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;content-type&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;application/json&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN class=""&gt;charset=UTF-8&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;Accept&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;application/json&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN class=""&gt;charset=UTF-8&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;Channel&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;Locale&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;en-US&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;TransactionID&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;E86B7D59-B3CC-401D-977F-65218248367E&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;ApplicationID&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;00000411&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;Authorization&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;Basic&lt;/SPAN&gt; &lt;SPAN class=""&gt;ZnJlZWRvbWNyZWF0ZTpDd0t4dGlmbGZ3ZnFaQVYydWhtUg==&lt;/SPAN&gt;&lt;SPAN&gt;"}}", &lt;/SPAN&gt;&lt;SPAN class=""&gt;RESPONSE=&lt;/SPAN&gt;&lt;SPAN&gt;"{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;body&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;model&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;isRedeemed&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:true&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;transactionReferenceNumber&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;6200754043&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;redeemType&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;Original&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;redemptionFailureReasonType&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:null&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;redemptionEquipmentMake&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;Apple&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;redemptionEquipmentModel&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;iPhone&lt;/SPAN&gt; &lt;SPAN class=""&gt;14&lt;/SPAN&gt; &lt;SPAN class=""&gt;Pro&lt;/SPAN&gt; &lt;SPAN class=""&gt;Max&lt;/SPAN&gt; &lt;SPAN class=""&gt;128GB&lt;/SPAN&gt; &lt;SPAN class=""&gt;Deep&lt;/SPAN&gt; &lt;SPAN class=""&gt;Purple&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;redemptionEquipmentMemory&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;128&lt;/SPAN&gt; &lt;SPAN class=""&gt;GB&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;committedPrice&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:1&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;additionalFees&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:0&lt;/SPAN&gt;&lt;SPAN&gt;},"&lt;/SPAN&gt;&lt;SPAN class=""&gt;code&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:200&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;messages&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:null&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;isSuccess&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:true&lt;/SPAN&gt;&lt;SPAN&gt;},"&lt;/SPAN&gt;&lt;SPAN class=""&gt;headers&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;connection&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;close&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;content-type&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;application/json&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN class=""&gt;charset=utf-8&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;set-cookie&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;["&lt;/SPAN&gt;&lt;SPAN class=""&gt;AWSELB=B3A9CDE108B7A1C9F0AFA19D2F1D801BC5EA2DB758E049CA400C049FE7C310DF0BB906899F8C6DFC23D16712EBB4CB423C132BEE67F4F3CB94A24AC7D3196B970C175CF4E9&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN class=""&gt;PATH=/&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;AWSELBCORS=B3A9CDE108B7A1C9F0AFA19D2F1D801BC5EA2DB758E049CA400C049FE7C310DF0BB906899F8C6DFC23D16712EBB4CB423C132BEE67F4F3CB94A24AC7D3196B970C175CF4E9&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN class=""&gt;PATH=/&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN class=""&gt;SECURE&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN class=""&gt;SAMESITE=None&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;visid_incap_968152=mMXe9betSnmAGjb6EkS6d8pCNGYAAAAAQUIPAAAAAACzpzJ8pi0eFle6ni7emEj9&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN class=""&gt;expires=Fri&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;02&lt;/SPAN&gt; &lt;SPAN class=""&gt;May&lt;/SPAN&gt; &lt;SPAN class=""&gt;2025&lt;/SPAN&gt; &lt;SPAN class=""&gt;07:32:03&lt;/SPAN&gt; &lt;SPAN class=""&gt;GMT&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN class=""&gt;HttpOnly&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN class=""&gt;path=/&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN class=""&gt;Domain=.likewize.com&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;nlbi_968152=pTYgM3uDpkZMpK2uILjsZwAAAABT3d67R/8WtJ556QqTUFQd&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN class=""&gt;path=/&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN class=""&gt;Domain=.likewize.com&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;incap_ses_677_968152=NKgET8f8eCtwLRsU8y9lCcpCNGYAAAAAghYI7GnE7TXEfi&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN class=""&gt;SGl0EKw==&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN class=""&gt;path=/&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN class=""&gt;Domain=.likewize.com&lt;/SPAN&gt;&lt;SPAN&gt;"],"&lt;/SPAN&gt;&lt;SPAN class=""&gt;content-length&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;354&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;server&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;Jetty&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;9.4.45.v20220203&lt;/SPAN&gt;&lt;SPAN&gt;)"}}", &lt;/SPAN&gt;&lt;SPAN class=""&gt;RETRYNO=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;ENDPOINT=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A href="https://apptium.freedommobile.ca/Activation.TradeUp" target="_blank" rel="noopener"&gt;https://apptium.freedommobile.ca/Activation.TradeUp&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;OPERATION=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;/FPC/Redemption/Redeem&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;METHOD=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;POST&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;CONNECTORID=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;0748a993-4566-48ae-9885-2a4dce9de585&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;CONNECTORNAME=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;Likewize&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;CONNECTORTYPE=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;Application&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;CONNECTORSUBTYPE=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;REST&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;STARTTIME=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;1714700999019&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;ENDTIME=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;1714701003106&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;RESPONSETIME=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;4087&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;SUCCESS=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;CLIENT=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;eportal-services&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;CREATEDDATE=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;2024-05-03&lt;/SPAN&gt; &lt;SPAN class=""&gt;01:50:03&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;USERNAME=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;BMashiana@FreedomMobile.ca&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;SESSIONID=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;_dd9ad114-bb2b-4c7f-a7aa-cfc3b929f674&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;ACTIONID=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;6e9c5f97-27bc-42fb-b1d3-61a701e4a708&lt;/SPAN&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;SPAN class=""&gt;TRACKID=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;3618c3e3-9bd1-4acc-af6a-f71f31b9092c"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;How do I retrieve the account number, channel code,&amp;nbsp;&lt;SPAN&gt;serialNumber from REQUEST and&amp;nbsp;transactionReferenceNumber from RESPONSE using splunk query. I have tried using spath and its not working out for me and displays a blank result. Please help asap.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="wireless_retail" source="create_freedom.transactionlog" OPERATION="/FPC/Redemption/Redeem" 
|spath input=REQUEST output=accountNumber path=body.customer{}.accountNumber
|mvexpand accountNumber
|table accountNumber&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 May 2024 14:08:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686321#M234133</guid>
      <dc:creator>splunk6</dc:creator>
      <dc:date>2024-05-03T14:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686328#M234135</link>
      <description>&lt;P&gt;Have REQUEST and RESPONSE been already extracted successfully?&lt;/P&gt;&lt;P&gt;Btw, your event isn't (completely) JSON; it does contain some JSON elements, but unless these have been extracted, you won't be able to use spath on them.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 14:44:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686328#M234135</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-03T14:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686329#M234136</link>
      <description>&lt;P&gt;is there any other way we can do it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 14:45:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686329#M234136</guid>
      <dc:creator>splunk6</dc:creator>
      <dc:date>2024-05-03T14:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686341#M234137</link>
      <description>&lt;P&gt;Assuming your events all follow the same pattern i.e. REQUEST followed by RESPONSE followed by RETRYNO, you could extract them prior to using spath&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "REQUEST=\"(?&amp;lt;REQUEST&amp;gt;.+)\", RESPONSE=\"(?&amp;lt;RESPONSE&amp;gt;.+)\", RETRYNO"
| spath input=REQUEST
| spath input=RESPONSE&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 May 2024 15:16:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686341#M234137</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-03T15:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686343#M234139</link>
      <description>&lt;P&gt;thanks for the response. But i need to extract only the accountNumber, channel,serialnumber from REQUEST and&amp;nbsp;transactionReferenceNumber from RESPONSE and display in table format&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 15:19:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686343#M234139</guid>
      <dc:creator>splunk6</dc:creator>
      <dc:date>2024-05-03T15:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686345#M234141</link>
      <description>&lt;P&gt;OK but you already know how to extract these elements as you have shown this in your question&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 15:22:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686345#M234141</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-03T15:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686346#M234142</link>
      <description>&lt;PRE&gt;index="wireless_retail" source="create_freedom.transactionlog" OPERATION="/FPC/Redemption/Redeem" 
|spath input=REQUEST output=accountNumber path=body.customer{}.accountNumber
|mvexpand accountNumber
|table accountNumber&lt;/PRE&gt;&lt;P&gt;this queryis not displaying any results for me if i run the results are blank&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 15:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686346#M234142</guid>
      <dc:creator>splunk6</dc:creator>
      <dc:date>2024-05-03T15:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686347#M234143</link>
      <description>&lt;P&gt;Why have you just ignored my suggestion and not included the rex line I suggested?&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 15:38:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686347#M234143</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-03T15:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686353#M234145</link>
      <description>&lt;P&gt;Sorry for the confusion. I tried with your query but am able to retrive only the accountnumber , but channel, serial number , memory (from response) is not retrieving. could you please check my updated query&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="wireless_retail" source="CREATE_FREEDOM.transactionlog" OPERATION="/FPC/Redemption/Redeem"
| rex "REQUEST=\"(?&amp;lt;REQUEST&amp;gt;.+)\", RESPONSE=\"(?&amp;lt;RESPONSE&amp;gt;.+)\", RETRYNO"
| spath input=REQUEST
|spath input=REQUEST output=accountNumber path=body.customer{}.accountNumber
|mvexpand accountNumber
|spath input=REQUEST output=serialNumber path=body.customer{}.serialNumber
|mvexpand serialNumber
|spath input=REQUEST output=Channel path=body.customer{}.Channel
|mvexpand Channel
|spath input=RESPONSE
|spath input=RESPONSE output=redemptionEquipmentMemory path=body.customer{}.redemptionEquipmentMemory
|mvexpand redemptionEquipmentMemory
|table accountNumber serialNumber Channel redemptionEquipmentMemory&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 May 2024 23:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686353#M234145</guid>
      <dc:creator>splunk6</dc:creator>
      <dc:date>2024-05-03T23:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686357#M234146</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="wireless_retail" source="CREATE_FREEDOM.transactionlog" OPERATION="/FPC/Redemption/Redeem"
| rex "REQUEST=\"(?&amp;lt;REQUEST&amp;gt;.+)\", RESPONSE=\"(?&amp;lt;RESPONSE&amp;gt;.+)\", RETRYNO"
| spath input=REQUEST
|spath input=REQUEST output=accountNumber path=body.customer{}.accountNumber
|mvexpand accountNumber
|spath input=REQUEST output=serialNumber path=body.equipment{}.serialNumber
|mvexpand serialNumber
|spath input=REQUEST output=Channel path=body{}.headers{}.Channel
|mvexpand Channel
|spath input=RESPONSE
|spath input=RESPONSE output=redemptionEquipmentMemory path=body.model{}.redemptionEquipmentMemory
|mvexpand redemptionEquipmentMemory
|spath input=RESPONSE output=transactionReferenceNumber path=body.model{}.transactionReferenceNumber
|mvexpand transactionReferenceNumber
|table accountNumber serialNumber Channel redemptionEquipmentMemory transactionReferenceNumber

&lt;/LI-CODE&gt;
&lt;P&gt;with this query i was able to retrieve the following as you suggested&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunk6_0-1714754009629.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30661i96BC78A625C9B553/image-size/medium?v=v2&amp;amp;px=400" role="button" title="splunk6_0-1714754009629.png" alt="splunk6_0-1714754009629.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but the channel alone is missing. It s inside the "body", -&amp;gt;"headers"-&amp;gt;"Channel". could you please let me know that alone how to retrive the path so that it wld be helpful for me to complete my work. Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 23:39:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686357#M234146</guid>
      <dc:creator>splunk6</dc:creator>
      <dc:date>2024-05-03T23:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686385#M234153</link>
      <description>&lt;P&gt;Try using the correct path&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|spath input=REQUEST output=Channel path=headers{}.Channel&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 May 2024 20:18:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686385#M234153</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-03T20:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686386#M234154</link>
      <description>&lt;P&gt;yea it works now thanks for your response&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 20:34:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686386#M234154</guid>
      <dc:creator>splunk6</dc:creator>
      <dc:date>2024-05-03T20:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686741#M234214</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to add on this existing query, I need to get the memory details from REQUEST alone. My raw data is like the below and this memory is also not available in all the events. So i need to fetch a report with the events that are only having "memory" in the REQUEST.(Not all events have this "memory" in the REQUEST). Please help asap.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunk6_0-1715092670525.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30719i08B0C39AD42C575B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="splunk6_0-1715092670525.png" alt="splunk6_0-1715092670525.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 14:51:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686741#M234214</guid>
      <dc:creator>splunk6</dc:creator>
      <dc:date>2024-05-07T14:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686770#M234226</link>
      <description>&lt;P&gt;What is the path to this element?&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 15:22:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686770#M234226</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-07T15:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686772#M234227</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This is the path to the element:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;|spath input=REQUEST output=Memory path=body.equipment{}.memory

&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;also this memory is not available in all the REQUEST.So i want only the events with whichever is having the "memory" in the REQUEST. I dont want to display the events without memory&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunk6_0-1715095520934.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30725i386C26F0732556D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="splunk6_0-1715095520934.png" alt="splunk6_0-1715095520934.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 17:35:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686772#M234227</guid>
      <dc:creator>splunk6</dc:creator>
      <dc:date>2024-05-07T17:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the value from json input using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686778#M234229</link>
      <description>&lt;P&gt;OK so extract it then filter the events&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where isnotnull(Memory)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 May 2024 16:33:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-value-from-json-input-using-splunk-query/m-p/686778#M234229</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-07T16:33:51Z</dc:date>
    </item>
  </channel>
</rss>

