<?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: Possible bug when using mvzip with xpath extracted fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-confirm-possible-bug-when-using-mvzip-with-xpath/m-p/646674#M223828</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257406"&gt;@siddharthprabhu&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Whoever in your organization has access to create Splunk Support tickets can follow this&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Random/How-do-i-file-a-Splunk-Support-Case-contact-Splunk-Support/td-p/148639" target="_blank"&gt;https://community.splunk.com/t5/Random/How-do-i-file-a-Splunk-Support-Case-contact-Splunk-Support/td-p/148639&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2023 14:52:32 GMT</pubDate>
    <dc:creator>burwell</dc:creator>
    <dc:date>2023-06-12T14:52:32Z</dc:date>
    <item>
      <title>Can anyone confirm possible bug when using mvzip with xpath extracted fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-confirm-possible-bug-when-using-mvzip-with-xpath/m-p/646547#M223794</link>
      <description>&lt;P&gt;Hello Splunk experts,&lt;/P&gt;
&lt;P&gt;I am encountering strange behaviour when using mvzip on fields extracted using xpath commands.&lt;/P&gt;
&lt;P&gt;I have provided a toy dataset below that mimics my XML events. I expect mvzip to combine the values in nickname and title pairwise. However, the search below creates only one pair and that too with the "wrong" set of values; the second value from nickname is combined with the first value from title. The other pair is not combined at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="&amp;lt;foo&amp;gt;&amp;lt;bar nickname=\"spock\" title=\"commander\"&amp;gt;&amp;lt;/bar&amp;gt;&amp;lt;/foo&amp;gt;&amp;lt;foo&amp;gt;&amp;lt;bar nickname=\"scotty\" title=\"engineer\"&amp;gt;&amp;lt;/bar&amp;gt;&amp;lt;/foo&amp;gt;"
| xpath outfield=nickname "//foo/bar/@nickname" field=_raw
| xpath outfield=title "//foo/bar/@title" field=_raw
| eval zipped=mvzip(nickname, title, "|")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I use the same syntax on fields extracted via regular expressions, the output is correct. So, I'm suspecting that mvzip doesn't play nice with multivalue fields extracted using xpath.&lt;/P&gt;
&lt;P&gt;Can anyone confirm if this is a bug or if I'm doing something wrong? I am running Splunk 8.1.3 in case anyone knows if this has been addressed in a later release.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 10:12:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-confirm-possible-bug-when-using-mvzip-with-xpath/m-p/646547#M223794</guid>
      <dc:creator>siddharthprabhu</dc:creator>
      <dc:date>2023-06-13T10:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug when using mvzip with xpath extracted fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-confirm-possible-bug-when-using-mvzip-with-xpath/m-p/646549#M223796</link>
      <description>&lt;P&gt;Looks like a bug with xpath (also present in 9.0.4) - xpath appears to join all mv fields in the events.&lt;/P&gt;&lt;P&gt;Try using spath (different syntax for path)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="&amp;lt;foo&amp;gt;&amp;lt;bar nickname=\"spock\" title=\"commander\"&amp;gt;&amp;lt;/bar&amp;gt;&amp;lt;/foo&amp;gt;&amp;lt;foo&amp;gt;&amp;lt;bar nickname=\"scotty\" title=\"engineer\"&amp;gt;&amp;lt;/bar&amp;gt;&amp;lt;/foo&amp;gt;"
| spath output=nickname "foo.bar{@nickname}"
| spath output=title "foo.bar{@title}"
| eval zipped=mvzip(nickname, title, "|")&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 11 Jun 2023 17:50:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-confirm-possible-bug-when-using-mvzip-with-xpath/m-p/646549#M223796</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-11T17:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug when using mvzip with xpath extracted fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-confirm-possible-bug-when-using-mvzip-with-xpath/m-p/646550#M223797</link>
      <description>&lt;P&gt;Thank you! I have tried using spath before and it indeed does the job for simple extractions. However, I was trying to get the xpath approach to work because my real data is deeply nested with repeating node elements and I require complex xPath expressions to extract the fields of interest.&lt;/P&gt;&lt;P&gt;Oh well, at least I know I wasn't going crazy! Hopefully Splunk will fix this in a coming release.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 18:31:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-confirm-possible-bug-when-using-mvzip-with-xpath/m-p/646550#M223797</guid>
      <dc:creator>siddharthprabhu</dc:creator>
      <dc:date>2023-06-11T18:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug when using mvzip with xpath extracted fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-confirm-possible-bug-when-using-mvzip-with-xpath/m-p/646552#M223799</link>
      <description>&lt;P&gt;It's not even that.&lt;/P&gt;&lt;P&gt;If you do&lt;/P&gt;&lt;PRE&gt;| eval tc=mvcount(title)&lt;BR /&gt;| eval nc=mvcount(nickname)&lt;/PRE&gt;&lt;P&gt;instead of the last eval, you'll see that for unknown reason only the nicknames are joined.&lt;/P&gt;&lt;P&gt;Some more digging into this shows that only the "title" attribute seems to _not_ get joined. Regardless of number of the attributes or their order.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 19:22:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-confirm-possible-bug-when-using-mvzip-with-xpath/m-p/646552#M223799</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-06-11T19:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug when using mvzip with xpath extracted fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-confirm-possible-bug-when-using-mvzip-with-xpath/m-p/646558#M223802</link>
      <description>&lt;P&gt;Hi. It would be great to file a ticket with Splunk Support to make sure they are aware of the bug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 04:18:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-confirm-possible-bug-when-using-mvzip-with-xpath/m-p/646558#M223802</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2023-06-12T04:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug when using mvzip with xpath extracted fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-confirm-possible-bug-when-using-mvzip-with-xpath/m-p/646594#M223809</link>
      <description>&lt;P&gt;Sure, I'd be happy to. Could you please guide me on how to do that?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 09:19:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-confirm-possible-bug-when-using-mvzip-with-xpath/m-p/646594#M223809</guid>
      <dc:creator>siddharthprabhu</dc:creator>
      <dc:date>2023-06-12T09:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug when using mvzip with xpath extracted fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-confirm-possible-bug-when-using-mvzip-with-xpath/m-p/646674#M223828</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257406"&gt;@siddharthprabhu&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Whoever in your organization has access to create Splunk Support tickets can follow this&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Random/How-do-i-file-a-Splunk-Support-Case-contact-Splunk-Support/td-p/148639" target="_blank"&gt;https://community.splunk.com/t5/Random/How-do-i-file-a-Splunk-Support-Case-contact-Splunk-Support/td-p/148639&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 14:52:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-confirm-possible-bug-when-using-mvzip-with-xpath/m-p/646674#M223828</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2023-06-12T14:52:32Z</dc:date>
    </item>
  </channel>
</rss>

