<?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 xml value having multiple same child tag? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-xml-value-having-multiple-same-child-tag/m-p/614666#M106350</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249326"&gt;@Vkeshar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like you need the first value from multivalued data.&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YOUR_SEARCH | spath
| eval OrderFacts=mvindex('OrderUpdateField.OrderFacts',0), OrderUpdateValue=mvindex('OrderUpdateField.OrderUpdateValue',0)
| table OrderFacts OrderUpdateValue&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;My Sample Search :&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval _raw="&amp;lt;OrderUpdateField&amp;gt;
     &amp;lt;OrderFacts&amp;gt;Place&amp;lt;/OrderFacts&amp;gt;
     &amp;lt;OrderDataType&amp;gt;String&amp;lt;/OrderDataType&amp;gt;
      &amp;lt;OrderUpdateValue&amp;gt;False&amp;lt;/OrderUpdateValue&amp;gt;
     &amp;lt;OrderFacts&amp;gt;Number&amp;lt;/OrderFacts&amp;gt;
     &amp;lt;OrderDataType&amp;gt;Integer&amp;lt;/OrderDataType&amp;gt;
     &amp;lt;OrderUpdateValue&amp;gt;1&amp;lt;/OrderUpdateValue&amp;gt;
     &amp;lt;OrderFacts&amp;gt;Location&amp;lt;/OrderFacts&amp;gt;
    &amp;lt;OrderDataType&amp;gt;String&amp;lt;/OrderDataType&amp;gt;
    &amp;lt;OrderUpdateValue&amp;gt;Earth&amp;lt;/OrderUpdateValue&amp;gt;
&amp;lt;/OrderUpdateField&amp;gt;" | spath
| eval OrderFacts=mvindex('OrderUpdateField.OrderFacts',0), OrderUpdateValue=mvindex('OrderUpdateField.OrderUpdateValue',0)
| table OrderFacts OrderUpdateValue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-09-27 at 10.54.02 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21689i5A437F1BF2D389B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-09-27 at 10.54.02 AM.png" alt="Screenshot 2022-09-27 at 10.54.02 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated. &lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2022 05:24:19 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2022-09-27T05:24:19Z</dc:date>
    <item>
      <title>How to extract xml value having multiple same child tag?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-xml-value-having-multiple-same-child-tag/m-p/612600#M106000</link>
      <description>&lt;P&gt;I have&amp;nbsp; following sample&amp;nbsp; XML event where I want to extract specific value for a child tag . Ex when &amp;lt;Order fact&amp;gt; value is 'Place' then extract &amp;lt;Orderupdatevalue&amp;gt; which is false&lt;/P&gt;
&lt;P&gt;&amp;lt;OrderUpdateField&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;OrderFacts&amp;gt;Place&amp;lt;/OrderFacts&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;OrderDataType&amp;gt;String&amp;lt;/OrderDataType&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;OrderUpdateValue&amp;gt;False&amp;lt;/OrderUpdateValue&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;OrderFacts&amp;gt;Number&amp;lt;/OrderFacts&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;OrderDataType&amp;gt;Integer&amp;lt;/OrderDataType&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;OrderUpdateValue&amp;gt;1&amp;lt;/OrderUpdateValue&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;OrderFacts&amp;gt;Location&amp;lt;/OrderFacts&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;OrderDataType&amp;gt;String&amp;lt;/OrderDataType&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;OrderUpdateValue&amp;gt;Earth&amp;lt;/OrderUpdateValue&amp;gt;&lt;BR /&gt;&amp;lt;/OrderUpdateField&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 17:05:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-xml-value-having-multiple-same-child-tag/m-p/612600#M106000</guid>
      <dc:creator>Vkeshar</dc:creator>
      <dc:date>2022-09-09T17:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract xml value having multiple same child tag?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-xml-value-having-multiple-same-child-tag/m-p/614666#M106350</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249326"&gt;@Vkeshar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like you need the first value from multivalued data.&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YOUR_SEARCH | spath
| eval OrderFacts=mvindex('OrderUpdateField.OrderFacts',0), OrderUpdateValue=mvindex('OrderUpdateField.OrderUpdateValue',0)
| table OrderFacts OrderUpdateValue&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;My Sample Search :&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval _raw="&amp;lt;OrderUpdateField&amp;gt;
     &amp;lt;OrderFacts&amp;gt;Place&amp;lt;/OrderFacts&amp;gt;
     &amp;lt;OrderDataType&amp;gt;String&amp;lt;/OrderDataType&amp;gt;
      &amp;lt;OrderUpdateValue&amp;gt;False&amp;lt;/OrderUpdateValue&amp;gt;
     &amp;lt;OrderFacts&amp;gt;Number&amp;lt;/OrderFacts&amp;gt;
     &amp;lt;OrderDataType&amp;gt;Integer&amp;lt;/OrderDataType&amp;gt;
     &amp;lt;OrderUpdateValue&amp;gt;1&amp;lt;/OrderUpdateValue&amp;gt;
     &amp;lt;OrderFacts&amp;gt;Location&amp;lt;/OrderFacts&amp;gt;
    &amp;lt;OrderDataType&amp;gt;String&amp;lt;/OrderDataType&amp;gt;
    &amp;lt;OrderUpdateValue&amp;gt;Earth&amp;lt;/OrderUpdateValue&amp;gt;
&amp;lt;/OrderUpdateField&amp;gt;" | spath
| eval OrderFacts=mvindex('OrderUpdateField.OrderFacts',0), OrderUpdateValue=mvindex('OrderUpdateField.OrderUpdateValue',0)
| table OrderFacts OrderUpdateValue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-09-27 at 10.54.02 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21689i5A437F1BF2D389B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-09-27 at 10.54.02 AM.png" alt="Screenshot 2022-09-27 at 10.54.02 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated. &lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 05:24:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-xml-value-having-multiple-same-child-tag/m-p/614666#M106350</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2022-09-27T05:24:19Z</dc:date>
    </item>
  </channel>
</rss>

