<?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: Duplicate nested KV's in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Duplicate-nested-KV-s/m-p/149370#M41771</link>
    <description>&lt;P&gt;Success!&lt;BR /&gt;
rex field=Resource_List_select "(?i):node_class=(?P&lt;NODE_CLASS&gt;[^ /+/:]+)"&lt;/NODE_CLASS&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:07:46 GMT</pubDate>
    <dc:creator>mjones414</dc:creator>
    <dc:date>2020-09-28T17:07:46Z</dc:date>
    <item>
      <title>Duplicate nested KV's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Duplicate-nested-KV-s/m-p/149369#M41770</link>
      <description>&lt;P&gt;Resource_list_select=ncpus=24:mpiprocs=2:node_class=n24.48+7:ncpus=24:mpiprocs=1:node_class=n24.48&lt;/P&gt;

&lt;P&gt;Every once in a while I get an event when there was a problem with an application that this fields data gets duplicate fields appended.  &lt;/P&gt;

&lt;P&gt;The pieces I'm wanting to pull out of this into individual fields are node_class and ncpu's, but whenever there was an unexpected problem it appends a +with a number and repeats the field.&lt;/P&gt;

&lt;P&gt;The rex I've been working on is: ..| rex field=Resource_List_select "\d:node_class=(?&lt;NODE_CLASS&gt;.*\d.[0-9]\d)"  This grabs the first instance of node_class or ncpu respectively but when there is duplicate entries in the field for each nested field, thats where it gets confused.&lt;/NODE_CLASS&gt;&lt;/P&gt;

&lt;P&gt;How could I revise this regex to grab node_class=n##.## and stop before it gets to a + sign?  whenever the data is formatted correctly the delimiter would be the :&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Duplicate-nested-KV-s/m-p/149369#M41770</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2020-09-28T17:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate nested KV's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Duplicate-nested-KV-s/m-p/149370#M41771</link>
      <description>&lt;P&gt;Success!&lt;BR /&gt;
rex field=Resource_List_select "(?i):node_class=(?P&lt;NODE_CLASS&gt;[^ /+/:]+)"&lt;/NODE_CLASS&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:07:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Duplicate-nested-KV-s/m-p/149370#M41771</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2020-09-28T17:07:46Z</dc:date>
    </item>
  </channel>
</rss>

