<?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: Extract values from all matches in regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-values-from-all-matches-in-regex/m-p/89911#M23050</link>
    <description>&lt;P&gt;wow thanks for the quick answer, worked&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2013 10:24:52 GMT</pubDate>
    <dc:creator>pbarford</dc:creator>
    <dc:date>2013-10-09T10:24:52Z</dc:date>
    <item>
      <title>Extract values from all matches in regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-values-from-all-matches-in-regex/m-p/89909#M23048</link>
      <description>&lt;P&gt;I have a line in my log like this&lt;/P&gt;

&lt;P&gt;013-09-30 23:55:32,954 [pool-13-thread-18655] INFO c.p.d.r.c.release.MessageReleaser  Expiry triggered for [1904614]: L[769] R[770] R[771] R[772] R[773] L[774] R[775] L[776] R[777]&lt;/P&gt;

&lt;P&gt;If I run this&lt;/P&gt;

&lt;P&gt;sourcetype="log4j" | search "Expiry" | rex "(?&lt;SEQNO&gt;L[[0-9]{1,45}])"&lt;/SEQNO&gt;&lt;/P&gt;

&lt;P&gt;it only gives me the first value "L[769]", I want to extract values for all matches. Have search through the forum and haven't found anything to help, any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 10:17:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-values-from-all-matches-in-regex/m-p/89909#M23048</guid>
      <dc:creator>pbarford</dc:creator>
      <dc:date>2013-10-09T10:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extract values from all matches in regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-values-from-all-matches-in-regex/m-p/89910#M23049</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="log4j" | search "Expiry" | rex max_match=10 "(?&amp;lt;seqno&amp;gt;L[[0-9]{1,45}])"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 10:21:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-values-from-all-matches-in-regex/m-p/89910#M23049</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2013-10-09T10:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extract values from all matches in regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-values-from-all-matches-in-regex/m-p/89911#M23050</link>
      <description>&lt;P&gt;wow thanks for the quick answer, worked&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 10:24:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-values-from-all-matches-in-regex/m-p/89911#M23050</guid>
      <dc:creator>pbarford</dc:creator>
      <dc:date>2013-10-09T10:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extract values from all matches in regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-values-from-all-matches-in-regex/m-p/89912#M23051</link>
      <description>&lt;P&gt;But you are missing the R values. Do this regex: &lt;CODE&gt;(?&amp;lt;seqno&amp;gt;[LR]\[[\d]+\])&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 11:21:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-values-from-all-matches-in-regex/m-p/89912#M23051</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-10-09T11:21:07Z</dc:date>
    </item>
  </channel>
</rss>

