<?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 repeat a regex to match more than one instances in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-repeat-a-regex-to-match-more-than-one-instances/m-p/676429#M231354</link>
    <description>&lt;P&gt;Yes. The additional options are one of the reasons for using TRANSFORM-based exractions instead of REPORT.&lt;/P&gt;&lt;P&gt;Notice, however, that REPEAT_MATCH is for index-time extractions.&amp;nbsp; You might want to consider MV_ADD&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 20:00:13 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-02-02T20:00:13Z</dc:date>
    <item>
      <title>How to repeat a regex to match more than one instances</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-repeat-a-regex-to-match-more-than-one-instances/m-p/676426#M231353</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using following regex to capture "caused by" exceptions within java stack trace.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Caused by: (?P&amp;lt;Exception&amp;gt;[^\r\n]+)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When testing in regex101, it seems to be working well. Captures both instances of "caused by" in the sample trace.&lt;/P&gt;&lt;P&gt;&lt;A href="https://regex101.com/r/yL1ucO/1" target="_self"&gt;https://regex101.com/r/yL1ucO/1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when used with EXTRACT within props.conf, Splunk only gets the first instance, i.e. "SomeException". 2nd occurrence, "AnotherException" is not captured.&lt;/P&gt;&lt;P&gt;Should I be using REPEAT_MATCH with transforms stanza, or is there a way to fix this within props itself?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 19:25:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-repeat-a-regex-to-match-more-than-one-instances/m-p/676426#M231353</guid>
      <dc:creator>att35</dc:creator>
      <dc:date>2024-02-02T19:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to repeat a regex to match more than one instances</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-repeat-a-regex-to-match-more-than-one-instances/m-p/676429#M231354</link>
      <description>&lt;P&gt;Yes. The additional options are one of the reasons for using TRANSFORM-based exractions instead of REPORT.&lt;/P&gt;&lt;P&gt;Notice, however, that REPEAT_MATCH is for index-time extractions.&amp;nbsp; You might want to consider MV_ADD&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 20:00:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-repeat-a-regex-to-match-more-than-one-instances/m-p/676429#M231354</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-02-02T20:00:13Z</dc:date>
    </item>
  </channel>
</rss>

