<?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: Stumped on this regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249249#M74422</link>
    <description>&lt;P&gt;whups, sorry Ignore the 8:43:57 on the last event sample.  Cut and Paste error&lt;/P&gt;</description>
    <pubDate>Sun, 16 Oct 2016 02:12:31 GMT</pubDate>
    <dc:creator>dbcase</dc:creator>
    <dc:date>2016-10-16T02:12:31Z</dc:date>
    <item>
      <title>Stumped on this regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249248#M74421</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to pull the user ID from the below data?  The userids are:  mspeer2, ddaniel, mirella, jcrews&lt;/P&gt;

&lt;P&gt;I have a regex of &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "(?i)^(?:[^\-]*\-){7}\"\s+\"(?P&amp;lt;loginid&amp;gt;[^\"]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but it isn't working 100%  (more like 50%)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  "something.something.com" 75.27.137.133 "75.27.137.133" - - [15/Oct/2016:20:58:26 -0500] "GET /rest/icontrol/login?expand=sites,instances,points,functions HTTP/1.1" 200 352093 0 UCT-193960 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Mobile/14A456" "-"  "mspeer2"

"something.something.com" 104.57.183.12 "104.57.183.12" - - [15/Oct/2016:20:58:04 -0500] "GET /rest/icontrol/login HTTP/1.1" 200 158 0 UCT-42064 "-" "HCM-R1" "-"  "ddaniel"

"something.something.com" 70.117.114.84 "70.117.114.84" - - [15/Oct/2016:20:55:14 -0500] "GET /rest/icontrol/login?expand=sites,instances,points,functions HTTP/1.1" 200 135730 0 UCT-82180 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Mobile/14A456" "-"  "mirella"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;8:43:57.000 PM&lt;BR /&gt;&lt;BR /&gt;
"something.something.com" 70.114.175.247 "70.114.175.247" - - [15/Oct/2016:20:43:57 -0500] "GET /rest/icontrol/login?expand=instances,points,functions HTTP/1.1" 200 99115 0 UCT-81322 "-" "-" "-"  "jcrews"&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2016 02:07:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249248#M74421</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-10-16T02:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Stumped on this regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249249#M74422</link>
      <description>&lt;P&gt;whups, sorry Ignore the 8:43:57 on the last event sample.  Cut and Paste error&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2016 02:12:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249249#M74422</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-10-16T02:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Stumped on this regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249250#M74423</link>
      <description>&lt;P&gt;If the login name is always the last one to occur in the log line then u can try below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.*\"(?&amp;lt;loginid&amp;gt;[^\"]+)\"$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 16 Oct 2016 02:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249250#M74423</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-10-16T02:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Stumped on this regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249251#M74424</link>
      <description>&lt;P&gt;Hi Gokadroid!&lt;/P&gt;

&lt;P&gt;Many thanks!  I've been working on figuring that out for a long time!!!   Yours works great!!!! &lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2016 02:36:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249251#M74424</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-10-16T02:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Stumped on this regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249252#M74425</link>
      <description>&lt;P&gt;Awesome!! If you can upvote the answer as well that will be great !!&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2016 02:37:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249252#M74425</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-10-16T02:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Stumped on this regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249253#M74426</link>
      <description>&lt;P&gt;Cool..thanks a lot @dbcase ...Happy Splunking!!&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2016 02:40:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249253#M74426</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-10-16T02:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Stumped on this regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249254#M74427</link>
      <description>&lt;P&gt;Thank you!  You don't know how much this helped!&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2016 02:42:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249254#M74427</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-10-16T02:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Stumped on this regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249255#M74428</link>
      <description>&lt;P&gt;No need to include all the text in front and &lt;CODE&gt;"&lt;/CODE&gt; does not need to be escaped in the &lt;CODE&gt;[]&lt;/CODE&gt;, so this should do &lt;CODE&gt;\"(?&amp;lt;loginid&amp;gt;[^"]+)\"$&lt;/CODE&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2016 19:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stumped-on-this-regex/m-p/249255#M74428</guid>
      <dc:creator>lakromani</dc:creator>
      <dc:date>2016-10-16T19:54:27Z</dc:date>
    </item>
  </channel>
</rss>

