<?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 all matching values from an event  using regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-matching-values-from-an-event-using-regex/m-p/44439#M10481</link>
    <description>&lt;P&gt;Thanks Ayn,Its working fine..........&lt;/P&gt;</description>
    <pubDate>Mon, 07 May 2012 04:37:18 GMT</pubDate>
    <dc:creator>john</dc:creator>
    <dc:date>2012-05-07T04:37:18Z</dc:date>
    <item>
      <title>How  to extract all matching values from an event  using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-matching-values-from-an-event-using-regex/m-p/44437#M10479</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;iam trying to extract certain values from my log files which i have given below&lt;BR /&gt;
1st event&lt;BR /&gt;
 at x.x.x.x.x.x(1)&lt;BR /&gt;
 at x.x.x.x.x.x.x.x(2)&lt;BR /&gt;
 at X.x.x.x.x.x.x.x.xx(3)&lt;BR /&gt;
...........&lt;BR /&gt;
2nd event&lt;BR /&gt;
at x.x.x.x.x.x(4)&lt;BR /&gt;
 at x.x.x.x.x.x.x.x(5)&lt;BR /&gt;
 at X.x.x.x.x.x.x.x.xx(6)&lt;BR /&gt;
...............&lt;BR /&gt;
.........&lt;BR /&gt;
 The issue iam facing is iam getting only first line of every event starting with "at", not the all lines in one event itself.I want all the values after "at" in each events"&lt;BR /&gt;
the output iam getting is like this&lt;/P&gt;

&lt;P&gt;x.x.x.x.x.x(1)&lt;BR /&gt;
x.x.x.x.x.x.x.x(5)&lt;/P&gt;

&lt;P&gt;This is the regex iam using &lt;/P&gt;

&lt;P&gt;rex field=_raw "at\s(?&lt;VALUE&gt;.*)\s"&lt;/VALUE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 May 2012 10:39:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-matching-values-from-an-event-using-regex/m-p/44437#M10479</guid>
      <dc:creator>john</dc:creator>
      <dc:date>2012-05-05T10:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: How  to extract all matching values from an event  using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-matching-values-from-an-event-using-regex/m-p/44438#M10480</link>
      <description>&lt;P&gt;&lt;CODE&gt;rex&lt;/CODE&gt; only matches one time by default. This behaviour is controlled by the &lt;CODE&gt;max_match&lt;/CODE&gt; parameter, so if you want more matches just set it to something higher:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex max_match=10 field=_raw "at\s(?&amp;lt;value&amp;gt;.*?)\s"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 05 May 2012 10:51:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-matching-values-from-an-event-using-regex/m-p/44438#M10480</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-05-05T10:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: How  to extract all matching values from an event  using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-matching-values-from-an-event-using-regex/m-p/44439#M10481</link>
      <description>&lt;P&gt;Thanks Ayn,Its working fine..........&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2012 04:37:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-matching-values-from-an-event-using-regex/m-p/44439#M10481</guid>
      <dc:creator>john</dc:creator>
      <dc:date>2012-05-07T04:37:18Z</dc:date>
    </item>
  </channel>
</rss>

