<?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 search or extract specific key/value pair from array? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/644364#M223183</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are a true legend. It worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason why it was not working due to key and value needs to be lower case.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval server_name = mvindex(Tags_value, mvfind(Tags_key, "Name"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Now the magic server_name is populated now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2023 22:54:34 GMT</pubDate>
    <dc:creator>freddy_Guo</dc:creator>
    <dc:date>2023-05-23T22:54:34Z</dc:date>
    <item>
      <title>How to search or extract specific key/value pair from array?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/590937#M205723</link>
      <description>&lt;P&gt;Using the Splunk addon for AWS to collect ec2 instance metadata I get an array called tags with key/value pairs such as below. What I want to do is extract the cluster name as a distinct var so that I can search on it or even better aggregate on it. Thoughts?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://webex.splunkcloud.com/en-US/app/squared/search?q=search%20index%3Ddumpster%20sourcetype%3D%22aws%3Ametadata%22%20659603101092%20source%3D%22us-east-1%3Aec2_instances%22%20%7C%20head%201&amp;amp;display.page.search.mode=verbose&amp;amp;dispatch.sample_ratio=1&amp;amp;workload_pool=standard_perf&amp;amp;earliest=-30m%40m&amp;amp;latest=now&amp;amp;display.page.search.tab=events&amp;amp;display.general.type=events&amp;amp;sid=1648239564.440695_B011F839-B8EC-4FE3-8658-9C91BABBECD9#" target="_blank" rel="noopener"&gt;[-]&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Key&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;hostname&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Value&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;elasticsearch001&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://webex.splunkcloud.com/en-US/app/squared/search?q=search%20index%3Ddumpster%20sourcetype%3D%22aws%3Ametadata%22%20659603101092%20source%3D%22us-east-1%3Aec2_instances%22%20%7C%20head%201&amp;amp;display.page.search.mode=verbose&amp;amp;dispatch.sample_ratio=1&amp;amp;workload_pool=standard_perf&amp;amp;earliest=-30m%40m&amp;amp;latest=now&amp;amp;display.page.search.tab=events&amp;amp;display.general.type=events&amp;amp;sid=1648239564.440695_B011F839-B8EC-4FE3-8658-9C91BABBECD9#" target="_blank" rel="noopener"&gt;[-]&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Key&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;cluster&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Value&lt;/SPAN&gt;:&amp;nbsp;systemlogs&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 20:46:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/590937#M205723</guid>
      <dc:creator>rolabrie</dc:creator>
      <dc:date>2022-03-25T20:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to search or extract specific key/value pair from array?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/590959#M205737</link>
      <description>&lt;P&gt;There &amp;nbsp;have been several recent discussions similar to this, like &lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-Extract-JSON-format-as-fields/m-p/586925" target="_self"&gt;How to Extract JSON format as fields?&lt;/A&gt;&amp;nbsp;and &lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-extract-JSON-with-key-name-specified-as-a-key/m-p/589769" target="_self"&gt;How to extract JSON with key name specified as a key&lt;/A&gt;. &amp;nbsp;My goto method is&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Spath" target="_blank" rel="noopener"&gt;spath&lt;/A&gt;. &amp;nbsp;Once multivalued tags subfields are extracted, you can use&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/MultivalueEvalFunctions#mvfind.28MVFIELD.2C.22REGEX.22.29" target="_blank" rel="noopener"&gt;mvfind&lt;/A&gt;&amp;nbsp;to find "cluster"s index, and &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/MultivalueEvalFunctions#mvindex.28MVFIELD.2CSTARTINDEX.2C_ENDINDEX.29" target="_blank" rel="noopener"&gt;mvindex&lt;/A&gt; to extract cluster's name.&lt;/P&gt;&lt;P&gt;Assuming your data is like&lt;/P&gt;&lt;PRE&gt;{"tags": [ {
       "Key": "hostname",
       "Value": "elasticsearch001"
     },
     {
       "Key": "cluster",
       "Value": "systemlogs"
     }
]}&lt;/PRE&gt;&lt;P&gt;The following code should extract cluster_name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath
| rename tags{}.* as tags_*
| eval cluster_name = mvindex(tags_Value, mvfind(tags_Key, "cluster"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sample data will give this output&lt;/P&gt;&lt;TABLE width="784px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;_raw&lt;/TD&gt;&lt;TD&gt;cluster_name&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=""&gt;tags_Key&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=""&gt;tags_Value&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="471.015625px"&gt;{"tags": [ { "Key": "hostname", "Value": "elasticsearch001" }, { "Key": "cluster", "Value": "systemlogs" } ]}&lt;/TD&gt;&lt;TD width="92.40625px"&gt;systemlogs&lt;/TD&gt;&lt;TD width="83.390625px"&gt;&lt;DIV class=""&gt;hostname&lt;/DIV&gt;&lt;DIV class=""&gt;cluster&lt;/DIV&gt;&lt;/TD&gt;&lt;TD width="136.1875px"&gt;&lt;DIV class=""&gt;elasticsearch001&lt;/DIV&gt;&lt;DIV class=""&gt;systemlogs&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 26 Mar 2022 08:14:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/590959#M205737</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-03-26T08:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to search or extract specific key/value pair from array?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/644201#M223137</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your answer. It looks interesting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm having problems getting the result I wanted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample data looks like below(I probably haven't closed brackets properly, but you get the idea)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;   detail: { [-]
     resource: { [-]
       instanceDetails: { [-]
         tags: [ 
           { [-]
             key: AWS_Backup
             value: Yes
           }
           { [-]
             key: Schedule
             value: pre-hours
           }
         ]
   }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my search looks like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=example_index
sourcetype="aws:cloudwatch:guardduty" 
| spath 
| rename detail.resource{}.instanceDetails{}.tags{}.* as tags_*
| eval host_name = mvindex(tags_value, mvfind(tags_key, "Name"))&lt;/LI-CODE&gt;&lt;P&gt;After hitting the search button, nothing came up.&amp;nbsp; If I add &lt;EM&gt;table host_name&lt;/EM&gt; the value is empty.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It you could please point out errors, that would be awesome.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 05:08:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/644201#M223137</guid>
      <dc:creator>freddy_Guo</dc:creator>
      <dc:date>2023-05-23T05:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to search or extract specific key/value pair from array?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/644206#M223139</link>
      <description>&lt;P&gt;Please post sample JSON data in raw text format. &amp;nbsp;"Translating" Splunk's default JSON view, especially with collapsable structures, back into JSON is very hard.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 05:38:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/644206#M223139</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-05-23T05:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to search or extract specific key/value pair from array?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/644208#M223140</link>
      <description>&lt;P&gt;Thank you for the prompt reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see if below works for you:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
    {
      "Resource": {
        "InstanceDetails": {
          "Tags": [
            {
              "Key": "AWS_Backup",
              "Value": "Yes"
            },
            {
              "Key": "Schedule",
              "Value": "pre-hours"
            },
            {
              "Key": "Name",
              "Value": "HOST-NAME"
            },
            {
              "Key": "Application Owner",
              "Value": "XXX"
            },
            {
              "Key": "Environment",
              "Value": "XXX"
            },
            {
              "Key": "Eco System",
              "Value": "XXX"
            },
            {
              "Key": "Patch Group",
              "Value": "XXX"
            },
            {
              "Key": "ScheduleMessage",
              "Value": "XXX"
            },
            {
              "Key": "Application",
              "Value": "MuleSoftESB"
            },
            {
              "Key": "Cost Centre",
              "Value": "XXX"
            }
          ]
        },
        "ResourceType": "Instance"
      }
    }
  ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 05:48:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/644208#M223140</guid>
      <dc:creator>freddy_Guo</dc:creator>
      <dc:date>2023-05-23T05:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to search or extract specific key/value pair from array?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/644210#M223141</link>
      <description>&lt;P data-unlink="true"&gt;So, your raw event is a JSON array? &amp;nbsp;In other words, you have fields like&amp;nbsp;{}.Resource.InstanceDetails.Tags{}.Key&amp;nbsp;,&amp;nbsp;{}.Resource.InstanceDetails.Tags{}.Value, etc. &amp;nbsp;In this case you will need to calculate against each element in this array. &amp;nbsp;Like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath path={}
| mvexpand {}
| spath input={}
| rename Resource.InstanceDetails.Tags{}.* as Tags_*
| eval host_name = mvindex(Tags_Value, mvfind(Tags_Key, "Name")) &lt;/LI-CODE&gt;&lt;P&gt;A more traditional method is to mvexpand the Tags{} array, then use where command to pick up the . &amp;nbsp;Just for illustration,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath path={}
| mvexpand {}
| spath input={} path=Resource.InstanceDetails.Tags{} output=Tags
| mvexpand Tags
| spath input=Tags
| where Key == "Name"
| rename Value AS host_name &lt;/LI-CODE&gt;&lt;P&gt;Hope this helps.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 07:07:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/644210#M223141</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-05-23T07:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to search or extract specific key/value pair from array?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/644230#M223149</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your help so far. You have been amazing!&lt;/P&gt;&lt;P&gt;We do have two fields called:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;detail.resource.instanceDetails.tags{}.key&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;detail.resource.instanceDetails.tags{}.value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The value looks like below:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-05-23 190123.png" style="width: 709px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25510iD555E2B0A941505B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-05-23 190123.png" alt="Screenshot 2023-05-23 190123.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And I have ran the search likes below, nothing returned. I also tried to remove&amp;nbsp; .value in line 4. It didn't make a difference, have I done any thing wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunk_search.png" style="width: 705px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25509iCB1A1B96EC353643/image-size/large?v=v2&amp;amp;px=999" role="button" title="splunk_search.png" alt="splunk_search.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Freddy&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 09:06:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/644230#M223149</guid>
      <dc:creator>freddy_Guo</dc:creator>
      <dc:date>2023-05-23T09:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to search or extract specific key/value pair from array?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/644278#M223168</link>
      <description>&lt;P&gt;A little linguistics here. &amp;nbsp;In JSON, square brackets [] denote an array of JSON object, whereas curly brackets {} denote a list of key-value pairs. &amp;nbsp;A JSON object can be an array or a list of key-value pairs; a JSON value can also be an array or a list of key-value pairs.&lt;/P&gt;&lt;P&gt;Splunk doesn't have a nested notation. &amp;nbsp;So, SPL flattens JSON paths by concatenating various JSON keys with dots (".") and curly brackets ("{}") to form Splunk field names. &amp;nbsp;Significantly, the string "{}" in SPL signifies an array; in JSON, that means that the value of the key preceding "{}" is enclosed by [].&lt;/P&gt;&lt;P&gt;In your text posting of sample data, the entire event is enclosed by []. &amp;nbsp;That is why I asked if Splunk gives fields like&lt;SPAN&gt;&amp;nbsp;{}.Resource.InstanceDetails.Tags{}.Key, i.e., every field name is preceded by "{}". (This is extremely rare in real life.) &amp;nbsp;If Splunk gives you fields like &lt;STRONG&gt;detail.resource.instanceDetails.tags{}.key&lt;/STRONG&gt;, that means that the events are not enclosed by [], but more like&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
      "Resource": {
        "InstanceDetails": {
          "Tags": [
            {
              "Key": "AWS_Backup",
              "Value": "Yes"
            },
            {
              "Key": "Schedule",
              "Value": "pre-hours"
            },
            {
              "Key": "Name",
              "Value": "HOST-NAME"
            },
            {
              "Key": "Application Owner",
              "Value": "XXX"
            },
            {
              "Key": "Environment",
              "Value": "XXX"
            },
            {
              "Key": "Eco System",
              "Value": "XXX"
            },
            {
              "Key": "Patch Group",
              "Value": "XXX"
            },
            {
              "Key": "ScheduleMessage",
              "Value": "XXX"
            },
            {
              "Key": "Application",
              "Value": "MuleSoftESB"
            },
            {
              "Key": "Cost Centre",
              "Value": "XXX"
            }
          ]
        },
        "ResourceType": "Instance"
      }
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;If this is the case, the original code should work, except you need to make letter cases match what Splunk shows. (SPL's case tolerance can be lax in some commands, but generally, field names are always case sensitive.)&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rename Resource.InstanceDetails.Tags{}.* as Tags_*
| eval host_name = mvindex(Tags_Value, mvfind(Tags_Key, "Name"))&lt;/LI-CODE&gt;&lt;P&gt;Or, if you want to go the more traditional route, extract the array Resource.InstanceDetails.Tags{} first.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath path=Resource.InstanceDetails.Tags{}
| mvexpand Resource.InstanceDetails.Tags{}
| spath input=Resource.InstanceDetails.Tags{}
| where Key == "Name"
| rename Value AS Host_name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Here is an emulation of your sample data. &amp;nbsp;You can play with it and compare with real data.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw = "{
      \"Resource\": {
        \"InstanceDetails\": {
          \"Tags\": [
            {
              \"Key\": \"AWS_Backup\",
              \"Value\": \"Yes\"
            },
            {
              \"Key\": \"Schedule\",
              \"Value\": \"pre-hours\"
            },
            {
              \"Key\": \"Name\",
              \"Value\": \"HOST-NAME\"
            },
            {
              \"Key\": \"Application Owner\",
              \"Value\": \"XXX\"
            },
            {
              \"Key\": \"Environment\",
              \"Value\": \"XXX\"
            },
            {
              \"Key\": \"Eco System\",
              \"Value\": \"XXX\"
            },
            {
              \"Key\": \"Patch Group\",
              \"Value\": \"XXX\"
            },
            {
              \"Key\": \"ScheduleMessage\",
              \"Value\": \"XXX\"
            },
            {
              \"Key\": \"Application\",
              \"Value\": \"MuleSoftESB\"
            },
            {
              \"Key\": \"Cost Centre\",
              \"Value\": \"XXX\"
            }
          ]
        },
        \"ResourceType\": \"Instance\"
      }
}"
``` data emulation above ```&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 15:58:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/644278#M223168</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-05-23T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to search or extract specific key/value pair from array?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/644364#M223183</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are a true legend. It worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason why it was not working due to key and value needs to be lower case.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval server_name = mvindex(Tags_value, mvfind(Tags_key, "Name"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Now the magic server_name is populated now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 22:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-or-extract-specific-key-value-pair-from-array/m-p/644364#M223183</guid>
      <dc:creator>freddy_Guo</dc:creator>
      <dc:date>2023-05-23T22:54:34Z</dc:date>
    </item>
  </channel>
</rss>

