<?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 each set of numbers from a string before space and after a ;(semi-colon) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-each-set-of-numbers-from-a-string-before-space/m-p/648225#M224308</link>
    <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use this | rex field=_raw "\s(?&amp;lt;patch_number&amp;gt;[^;]+);" I get no errors but which is giving only one patch set number in the patch_number field, which is 35255955. Will it be possible to find all the matched patterns separated by a comma? like below from the complete string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expected outcome should be like for patch_number filed is 35255955,35226999,35162846,35159582,35148842,35035861,33950717,1221417, ...etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satheesh&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 16:17:43 GMT</pubDate>
    <dc:creator>Satheesh_red</dc:creator>
    <dc:date>2023-06-26T16:17:43Z</dc:date>
    <item>
      <title>How to extract each set of numbers from a string before space and after a ;(semi-colon)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-each-set-of-numbers-from-a-string-before-space/m-p/648159#M224305</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm trying to extract the matching patterns 35255955, 35226999, 35162846 ...etc untill end of the string with matching one into patch_number field from the string below before &amp;lt;space&amp;gt; and after the ;(semi-colon)&lt;/P&gt;
&lt;P&gt;I tried use below rex in&amp;nbsp;regex101.com and tested, which worked for me with&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt; ([^\s&amp;lt;patch_number&amp;gt;]+;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;but when i apply same in Splunk, it's not working, it's giving me error below&lt;/P&gt;
&lt;P&gt;query =&amp;nbsp;index = ** sourcetype=** | rex field=_raw "([^\s&amp;lt;patch_number&amp;gt;]+;)"&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;Error in 'rex' command: The regex '([^\s&amp;lt;patch_number&amp;gt;]+;)' does not extract anything. It should specify at least one named group. Format: (?&amp;lt;name&amp;gt;...).&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;I'm looking at the result for the field - patch_number is&amp;nbsp;35255955,35226999,35162846 ....etc in splunk&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Event String:-&lt;BR /&gt;Domain=dfs1_sit2_osb 35255955;SOA Bundle Patch 12.2.1.4.230404 35226999;WLS PATCH SET UPDATE 12.2.1.4.230328 35162846;FMW Thirdparty Bundle Patch 12.2.1.4.230309 35159582;OWSM BUNDLE PATCH 12.2.1.4.230308 35148842;ADF BUNDLE PATCH 12.2.1.4.230306 35035861;RDA release 23.2-20230418 for OFM 12.2.1.4 SPB 33950717;OPSS Bundle Patch 12.2.1.4.220311 1221417;Coherence Cumulative Patch 12.2.1.4.17 34765492; 34542329;One-off 33639718;33639718 - ADR FOR WEBLOGIC SERVER 12.2.1.4.0 JUL CPU 2022 33903365;One-off 32720458;JDBC 19.3.0.0 FOR CPUJAN2022 (WLS 12.2.1.4, WLS 14.1.1) 33093748;One-off 32455874;One-off 32121987;OSB Bundle Patch 12.2.1.4.201105 31101362; 30997624;One-off 30741105;One-off 30700379;One-off 30455072;One-off 28970552;One-off 26573463;One-off 22526026;One-off 18387355;One-off OPatch succeeded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly help me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Satheesh&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 16:18:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-each-set-of-numbers-from-a-string-before-space/m-p/648159#M224305</guid>
      <dc:creator>Satheesh_red</dc:creator>
      <dc:date>2023-06-26T16:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract each set of numbers from a string before space and after a ;(semi-colon)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-each-set-of-numbers-from-a-string-before-space/m-p/648217#M224306</link>
      <description>&lt;P&gt;While the regex may be valid, it does not contain a named capture group, which is why the error was thrown.&amp;nbsp; Try this command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;query = index = ** sourcetype=** | rex field=_raw "\s(?&amp;lt;patch_number&amp;gt;[^;]+);"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 26 Jun 2023 15:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-each-set-of-numbers-from-a-string-before-space/m-p/648217#M224306</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-06-26T15:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract each set of numbers from a string before space and after a ;(semi-colon)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-each-set-of-numbers-from-a-string-before-space/m-p/648225#M224308</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use this | rex field=_raw "\s(?&amp;lt;patch_number&amp;gt;[^;]+);" I get no errors but which is giving only one patch set number in the patch_number field, which is 35255955. Will it be possible to find all the matched patterns separated by a comma? like below from the complete string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expected outcome should be like for patch_number filed is 35255955,35226999,35162846,35159582,35148842,35035861,33950717,1221417, ...etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satheesh&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 16:17:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-each-set-of-numbers-from-a-string-before-space/m-p/648225#M224308</guid>
      <dc:creator>Satheesh_red</dc:creator>
      <dc:date>2023-06-26T16:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract each set of numbers from a string before space and after a ;(semi-colon)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-each-set-of-numbers-from-a-string-before-space/m-p/648230#M224310</link>
      <description>&lt;P&gt;To find multiple matches of a string with the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command, use the &lt;FONT face="courier new,courier"&gt;max_match=n&lt;/FONT&gt; option.&amp;nbsp; &lt;FONT face="courier new,courier"&gt;max_match=0&lt;/FONT&gt; will return all matches.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 16:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-each-set-of-numbers-from-a-string-before-space/m-p/648230#M224310</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-06-26T16:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract each set of numbers from a string before space and after a ;(semi-colon)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-each-set-of-numbers-from-a-string-before-space/m-p/648281#M224326</link>
      <description>&lt;P&gt;Thankyou for your help&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's worked. Appreciated your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satheesh&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 05:15:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-each-set-of-numbers-from-a-string-before-space/m-p/648281#M224326</guid>
      <dc:creator>Satheesh_red</dc:creator>
      <dc:date>2023-06-27T05:15:57Z</dc:date>
    </item>
  </channel>
</rss>

