<?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: Extracting JSON object from JSON array, if value matches in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-JSON-object-from-JSON-array-if-value-matches/m-p/510978#M86810</link>
    <description>&lt;P&gt;If It doesn't work with that you haven't presented, It's unfair.&lt;/P&gt;&lt;P&gt;try &lt;STRONG&gt;mvexpand&lt;/STRONG&gt;&amp;nbsp;instead of&amp;nbsp;&lt;STRONG&gt;stats()&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jul 2020 22:54:14 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-07-25T22:54:14Z</dc:date>
    <item>
      <title>Extracting JSON object from JSON array, if value matches</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-JSON-object-from-JSON-array-if-value-matches/m-p/510770#M86796</link>
      <description>&lt;P&gt;I've stuck in a scenario, where I want to extract complete JSON object from an JSON array collection on behalf of my search input criteria or on the basis of id match condition. Below is an example :-&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"message": {&lt;BR /&gt;messageHeader: "MessageHeader",&lt;BR /&gt;"messageList": [{&lt;BR /&gt;"messageName": "messageNameA",&lt;BR /&gt;"messageValue": "messageValueA",&lt;BR /&gt;"messageId": "A_Value"&lt;BR /&gt;"messageStart": "StartDate_Time_Value1",&lt;BR /&gt;"messageEnd": "EndDate_Time_Value_1"&lt;BR /&gt;"messageConsumerCount": "Count_MessageA"&lt;BR /&gt;}, {&lt;BR /&gt;"messageName": "messageNameB",&lt;BR /&gt;"messageValue": "messageValueB",&lt;BR /&gt;"messageId": "B_Value"&lt;BR /&gt;"messageStart": "StartDate_Time_Value1",&lt;BR /&gt;"messageEnd": "EndDate_Time_Value_1"&lt;BR /&gt;"messageConsumerCount": "Count_MessageB"&lt;BR /&gt;}, {&lt;BR /&gt;"messageName": "messageNameC",&lt;BR /&gt;"messageValue": "messageValueC",&lt;BR /&gt;"messageId": "C_Value"&lt;BR /&gt;"messageStart": "StartDate_Time_Value1",&lt;BR /&gt;"messageEnd": "EndDate_Time_Value_1"&lt;BR /&gt;"messageConsumerCount": "Count_MessageC"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"messageTotalConsumerCount": "Total Value of Header 1"&lt;BR /&gt;},&lt;BR /&gt;"severity": "info"&lt;BR /&gt;}, {&lt;BR /&gt;"message": {&lt;BR /&gt;messageHeader: "MessageHeader",&lt;BR /&gt;"messageList": [{&lt;BR /&gt;"messageName": "messageNameA",&lt;BR /&gt;"messageValue": "messageValueA",&lt;BR /&gt;"messageId": "A_Value"&lt;BR /&gt;"messageStart": "StartDate_Time_Value2",&lt;BR /&gt;"messageEnd": "EndDate_Time_Value_2"&lt;BR /&gt;"messageConsumerCount": "Count_MessageA"&lt;BR /&gt;}, {&lt;BR /&gt;"messageName": "messageNameC",&lt;BR /&gt;"messageValue": "messageValueC",&lt;BR /&gt;"messageId": "C_Value"&lt;BR /&gt;"messageStart": "StartDate_Time_Value2",&lt;BR /&gt;"messageEnd": "EndDate_Time_Value_2"&lt;BR /&gt;"messageConsumerCount": "Count_MessageC"&lt;BR /&gt;}, {&lt;BR /&gt;"messageName": "messageNameB",&lt;BR /&gt;"messageValue": "messageValueB",&lt;BR /&gt;"messageId": "B_Value"&lt;BR /&gt;"messageStart": "StartDate_Time_Value2",&lt;BR /&gt;"messageEnd": "EndDate_Time_Value_2"&lt;BR /&gt;"messageConsumerCount": "Count_MessageB"&lt;BR /&gt;}, {&lt;BR /&gt;"messageName": "messageNameD",&lt;BR /&gt;"messageValue": "messageValueD",&lt;BR /&gt;"messageId": "D_Value"&lt;BR /&gt;"messageStart": "StartDate_Time_Value2",&lt;BR /&gt;"messageEnd": "EndDate_Time_Value_2"&lt;BR /&gt;"messageConsumerCount": "Count_MessageD"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"messageTotalConsumerCount": "Total Value of Header 1"&lt;BR /&gt;},&lt;BR /&gt;"severity": "info"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the above JSON, I want to retrieve JSON object on the basis of "messageId" = "B_Value". So my desire result should be :&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"messageName": "messageNameB",&lt;BR /&gt;"messageValue": "messageValueB",&lt;BR /&gt;"messageId": "B_Value"&lt;BR /&gt;"messageStart": "StartDate_Time_Value1",&lt;BR /&gt;"messageEnd": "EndDate_Time_Value_1"&lt;BR /&gt;"messageConsumerCount": "Count_MessageB"&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"messageName": "messageNameB",&lt;BR /&gt;"messageValue": "messageValueB",&lt;BR /&gt;"messageId": "B_Value"&lt;BR /&gt;"messageStart": "StartDate_Time_Value2",&lt;BR /&gt;"messageEnd": "EndDate_Time_Value_2"&lt;BR /&gt;"messageConsumerCount": "Count_MessageB"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The sequence of messageId can be different, as in the JSON "B_Value" occurrence is second and third respectively.&lt;/P&gt;&lt;P&gt;Let me know if I need to clarify more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks in Advance!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 03:39:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extracting-JSON-object-from-JSON-array-if-value-matches/m-p/510770#M86796</guid>
      <dc:creator>rishabh10jain</dc:creator>
      <dc:date>2020-07-24T03:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting JSON object from JSON array, if value matches</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-JSON-object-from-JSON-array-if-value-matches/m-p/510773#M86797</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="[{\"message\":{\"messageHeader\":\"MessageHeader\",\"messageList\":[{\"messageName\":\"messageNameA\",\"messageValue\":\"messageValueA\",\"messageId\":\"A_Value\",\"messageStart\":\"StartDate_Time_Value1\",\"messageEnd\":\"EndDate_Time_Value_1\",\"messageConsumerCount\":\"Count_MessageA\"},{\"messageName\":\"messageNameB\",\"messageValue\":\"messageValueB\",\"messageId\":\"B_Value\",\"messageStart\":\"StartDate_Time_Value1\",\"messageEnd\":\"EndDate_Time_Value_1\",\"messageConsumerCount\":\"Count_MessageB\"},{\"messageName\":\"messageNameC\",\"messageValue\":\"messageValueC\",\"messageId\":\"C_Value\",\"messageStart\":\"StartDate_Time_Value1\",\"messageEnd\":\"EndDate_Time_Value_1\",\"messageConsumerCount\":\"Count_MessageC\"}],\"messageTotalConsumerCount\":\"Total Value of Header 1\"},\"severity\":\"info\"},{\"message\":{\"messageHeader\":\"MessageHeader\",\"messageList\":[{\"messageName\":\"messageNameA\",\"messageValue\":\"messageValueA\",\"messageId\":\"A_Value\",\"messageStart\":\"StartDate_Time_Value2\",\"messageEnd\":\"EndDate_Time_Value_2\",\"messageConsumerCount\":\"Count_MessageA\"},{\"messageName\":\"messageNameC\",\"messageValue\":\"messageValueC\",\"messageId\":\"C_Value\",\"messageStart\":\"StartDate_Time_Value2\",\"messageEnd\":\"EndDate_Time_Value_2\",\"messageConsumerCount\":\"Count_MessageC\"},{\"messageName\":\"messageNameB\",\"messageValue\":\"messageValueB\",\"messageId\":\"B_Value\",\"messageStart\":\"StartDate_Time_Value2\",\"messageEnd\":\"EndDate_Time_Value_2\",\"messageConsumerCount\":\"Count_MessageB\"},{\"messageName\":\"messageNameD\",\"messageValue\":\"messageValueD\",\"messageId\":\"D_Value\",\"messageStart\":\"StartDate_Time_Value2\",\"messageEnd\":\"EndDate_Time_Value_2\",\"messageConsumerCount\":\"Count_MessageD\"}],\"messageTotalConsumerCount\":\"Total Value of Header 1\"},\"severity\":\"info\"}]"
| spath {}.message.messageList{} output=messageList
| stats count by messageList
| spath input=messageList
| fields - count messageList&lt;/LI-CODE&gt;&lt;P&gt;your JSON is not valid.&amp;nbsp;&lt;BR /&gt;If your JSON is valid like above, try &lt;STRONG&gt;spath&amp;nbsp;&lt;/STRONG&gt;and search as_you_like.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 08:03:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extracting-JSON-object-from-JSON-array-if-value-matches/m-p/510773#M86797</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-07-24T08:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting JSON object from JSON array, if value matches</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-JSON-object-from-JSON-array-if-value-matches/m-p/510977#M86809</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp; - Thanks for your reply, your solutions works for me. Actually I've just modified the actual JSON and tried to combine two separate JSON, to better explain my query. You've resolved it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now after seeing your solution I got stuck in count part. Actual JSON contains count field also, below is example. Now as per your solution you are removing count field by "field - count messageList", due to this the original count&amp;nbsp; field is also not displaying, that causes issue to me.&lt;/P&gt;&lt;P&gt;Original Valid JSON -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#800080"&gt;[{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"message": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageHeader": "MessageHeader",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageList": [{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageName": "messageNameA",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageValue": "messageValueA",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageId": "A_Value",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageStart": "StartDate_Time_Value1",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageEnd": "EndDate_Time_Value_1",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageConsumerCount": "Count_MessageA",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"count": "MessageCount"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;}, {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageName": "messageNameB",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageValue": "messageValueB",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageId": "B_Value",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageStart": "StartDate_Time_Value1",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageEnd": "EndDate_Time_Value_1",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageConsumerCount": "Count_MessageB",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"count": "MessageCount"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;}, {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageName": "messageNameC",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageValue": "messageValueC",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageId": "C_Value",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageStart": "StartDate_Time_Value1",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageEnd": "EndDate_Time_Value_1",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageConsumerCount": "Count_MessageC",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"count": "MessageCount"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;}],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageTotalConsumerCount": "Total Value of Header 1"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"severity": "info"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"message": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageHeader": "MessageHeader",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageList": [{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageName": "messageNameA",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageValue": "messageValueA",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageId": "A_Value",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageStart": "StartDate_Time_Value2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageEnd": "EndDate_Time_Value_2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageConsumerCount": "Count_MessageA",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"count": "MessageCount"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;}, {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageName": "messageNameC",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageValue": "messageValueC",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageId": "C_Value",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageStart": "StartDate_Time_Value2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageEnd": "EndDate_Time_Value_2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageConsumerCount": "Count_MessageC",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"count": "MessageCount"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;}, {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageName": "messageNameB",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageValue": "messageValueB",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageId": "B_Value",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageStart": "StartDate_Time_Value2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageEnd": "EndDate_Time_Value_2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageConsumerCount": "Count_MessageB",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"count": "MessageCount"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;}, {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageName": "messageNameD",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageValue": "messageValueD",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageId": "D_Value",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageStart": "StartDate_Time_Value2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageEnd": "EndDate_Time_Value_2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageConsumerCount": "Count_MessageD",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"count": "MessageCount"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;}],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"messageTotalConsumerCount": "Total Value of Header 1"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;"severity": "info"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4" color="#000000"&gt;After applying your query, in the output I'm not able to get count field.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4" color="#000000"&gt;Thanks!!!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 20:26:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extracting-JSON-object-from-JSON-array-if-value-matches/m-p/510977#M86809</guid>
      <dc:creator>rishabh10jain</dc:creator>
      <dc:date>2020-07-25T20:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting JSON object from JSON array, if value matches</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-JSON-object-from-JSON-array-if-value-matches/m-p/510978#M86810</link>
      <description>&lt;P&gt;If It doesn't work with that you haven't presented, It's unfair.&lt;/P&gt;&lt;P&gt;try &lt;STRONG&gt;mvexpand&lt;/STRONG&gt;&amp;nbsp;instead of&amp;nbsp;&lt;STRONG&gt;stats()&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 22:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extracting-JSON-object-from-JSON-array-if-value-matches/m-p/510978#M86810</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-07-25T22:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting JSON object from JSON array, if value matches</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-JSON-object-from-JSON-array-if-value-matches/m-p/511261#M86844</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with &lt;STRONG&gt;mvexpand&lt;/STRONG&gt; but it's not working for me. Can you please send the complete query that how we can use it. Although I've figure out the another way to resolve my issue, i.e mentioned below, but not able to use &lt;STRONG&gt;mvexpand.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;stats values(*) as * by List&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and than apply table to get data in tabular format.&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 05:32:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extracting-JSON-object-from-JSON-array-if-value-matches/m-p/511261#M86844</guid>
      <dc:creator>rishabh10jain</dc:creator>
      <dc:date>2020-07-28T05:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting JSON object from JSON array, if value matches</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-JSON-object-from-JSON-array-if-value-matches/m-p/511282#M86846</link>
      <description>&lt;P&gt;| makeresults&lt;BR /&gt;| eval tmp=mvrange(0,100)&lt;BR /&gt;| stats count by tmp&lt;BR /&gt;| fields - count&lt;BR /&gt;&lt;BR /&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;| makeresults&lt;BR /&gt;| eval tmp=mvrange(0,100)&lt;BR /&gt;| mvexpand tmp&lt;BR /&gt;&lt;BR /&gt;both extracts multivalues. &lt;STRONG&gt;stats by &lt;/STRONG&gt;can extract multivalue without limits.conf.&lt;BR /&gt;JSON have many multivalues.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It needs to be used according to the situation.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 09:02:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extracting-JSON-object-from-JSON-array-if-value-matches/m-p/511282#M86846</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-07-28T09:02:28Z</dc:date>
    </item>
  </channel>
</rss>

