<?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: Another regex question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Another-regex-question/m-p/115051#M30439</link>
    <description>&lt;P&gt;Here I've copied your logs and tested out a regex that you could use. All you need to add is the field name.&lt;/P&gt;

&lt;P&gt;Here's the example:&lt;BR /&gt;
&lt;A href="http://regexr.com/39sji"&gt;http://regexr.com/39sji&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;So your regex will look something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Retina: (?&amp;lt;vuln&amp;gt;.+?\(\d+\)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The thing you need to do add the +? which makes the regex non-greedy, it matches the least rather than the most. Then you just go to the end of the next group of digits that are also surrounded by parenthesis. &lt;/P&gt;</description>
    <pubDate>Mon, 10 Nov 2014 18:08:45 GMT</pubDate>
    <dc:creator>aljohnson_splun</dc:creator>
    <dc:date>2014-11-10T18:08:45Z</dc:date>
    <item>
      <title>Another regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-regex-question/m-p/115049#M30437</link>
      <description>&lt;P&gt;My current Regex is:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Retina: (?P'&amp;lt;'vuln'&amp;gt;\w+\s+\w+\s+\w+\s+\w+\s+\w+\s+\w+\s+\w+\s+\w+\s+\w+\s+\w+\s+\w+\s+\w+\s+)\"on IP"$&amp;gt; &lt;/CODE&gt;&lt;BR /&gt;
There are slashes in between the s's and w's but I can't figure that out either right now.&lt;/P&gt;

&lt;P&gt;I'm trying to extract results similar to  "Retina has found High Severity audit Microsoft Windows Authenticode Verification Code Execution (2653956)" from the following type of logs, but I only get a few results.&lt;/P&gt;

&lt;P&gt;Nov 10 00:19:39 10.0.33.210 2014-11-10  5:19:25 Retina: Retina has found High Severity audit Microsoft Windows Authenticode Verification Code Execution (2653956) on ip 10.0.33.198.&lt;BR /&gt;
Nov 10 00:19:47 10.0.33.210 2014-11-10  5:19:33 Retina: Retina has found Medium Severity audit Microsoft Windows Kernel Privilege Escalation (2711167) on ip 10.0.33.198.&lt;BR /&gt;
Nov 10 00:19:41 10.0.33.210 2014-11-10  5:19:27 Retina: Retina has found High Severity audit Microsoft .NET Framework Remote Code Execution (2878890) - KB2863240 on ip 10.0.33.198.&lt;BR /&gt;
Nov 10 00:19:30 10.0.33.210 2014-11-10  5:19:16 Retina: Retina has found Low Severity audit Microsoft VBScript/JScript Information Disclosure (2475792) - VBScript on ip 10.0.33.198.&lt;BR /&gt;
Nov 10 00:19:48 10.0.33.210 2014-11-10  5:19:34 Retina: Retina has found Informational audit DNP3 Protocol Detected on ip 10.0.33.198.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 16:26:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-regex-question/m-p/115049#M30437</guid>
      <dc:creator>jclehmuth</dc:creator>
      <dc:date>2014-11-10T16:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Another regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-regex-question/m-p/115050#M30438</link>
      <description>&lt;P&gt;I can get it to partly work when I replace the "+" with "*"&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 17:43:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-regex-question/m-p/115050#M30438</guid>
      <dc:creator>jclehmuth</dc:creator>
      <dc:date>2014-11-10T17:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Another regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-regex-question/m-p/115051#M30439</link>
      <description>&lt;P&gt;Here I've copied your logs and tested out a regex that you could use. All you need to add is the field name.&lt;/P&gt;

&lt;P&gt;Here's the example:&lt;BR /&gt;
&lt;A href="http://regexr.com/39sji"&gt;http://regexr.com/39sji&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;So your regex will look something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Retina: (?&amp;lt;vuln&amp;gt;.+?\(\d+\)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The thing you need to do add the +? which makes the regex non-greedy, it matches the least rather than the most. Then you just go to the end of the next group of digits that are also surrounded by parenthesis. &lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:08:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-regex-question/m-p/115051#M30439</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2014-11-10T18:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Another regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-regex-question/m-p/115052#M30440</link>
      <description>&lt;P&gt;That seemed to work, thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:23:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-regex-question/m-p/115052#M30440</guid>
      <dc:creator>jclehmuth</dc:creator>
      <dc:date>2014-11-10T18:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Another regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-regex-question/m-p/115053#M30441</link>
      <description>&lt;P&gt;While this works, if we allow a tiny bit of pedantry, I'd revise this regex to:&lt;/P&gt;

&lt;P&gt;Retina: (?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:53:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-regex-question/m-p/115053#M30441</guid>
      <dc:creator>rkent</dc:creator>
      <dc:date>2015-06-22T17:53:01Z</dc:date>
    </item>
  </channel>
</rss>

