<?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: REGEX Help to extract USERID in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235163#M69853</link>
    <description>&lt;P&gt;Yep, i confused you with someone else I worked with today.  My apologies.  Great site though!  &lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2016 18:35:47 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2016-05-09T18:35:47Z</dc:date>
    <item>
      <title>REGEX Help to extract USERID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235155#M69845</link>
      <description>&lt;P&gt;I'm trying to extract the userid field but am not able to get a clean extraction.  I've tried several combinations all have different issues and are not exact.&lt;/P&gt;

&lt;P&gt;FAILED REGEX Attempts:&lt;BR /&gt;
^(?:[^[\n]&lt;EM&gt;[){8}(?P[^]]+)&lt;BR /&gt;
^(?:[^:\n]&lt;/EM&gt;:){7}\s+(?P\w+)&lt;BR /&gt;
^[^)\n]*)']\s+[\w+:\s+(?P\w+)&lt;/P&gt;

&lt;P&gt;data sub set:&lt;BR /&gt;
[2016-05-03T23:59:57.225-05:00] [gw_server1] [NOTIFICATION] [] [com.charter.care.customer.view.device.backing.deviceStatusFlow.DeviceStatusManager] [tid: [ACTIVE].ExecuteThread: '26' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: nhorsley] [ecid: a44b71a4-e0b3-420d-9d59-fd890c508729-0024359c,0] [APP: chtrgwy] DM-provisioning-operation = REPROVISION_PHONE_INTERNET   Account = 8357190022950***   Mac = 001dd6725***   AuditUser = CHTRGWY:nhorsley   Status = INFO: QTS retry number 2 for order ID 50487161 - Location-JobCode-JobTitle - CC-Louisville Call Center-D713-Cust Rel Coord-Internet/Phone&lt;BR /&gt;
 VALID&lt;BR /&gt;
[2016-05-03T23:59:56.390-05:00] [gw_server1] [NOTIFICATION] [] [com.charter.care.customer.memo.model.dao.MemoServiceHelper] [tid: [ACTIVE].ExecuteThread: '28' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: sshimin] [ecid: a44b71a4-e0b3-420d-9d59-fd890c508729-00243595,0] [APP: chtrgwy] 2016-05-03 23:59:56.39 - ADD MEMO PROCESSED  - 8345780100010*** - UI0 - Caller verified - CC-Louisville Call Center-D719-Cust Rel Coord-Comm Repair&lt;BR /&gt;
 VALID&lt;BR /&gt;
[2016-05-03T23:59:56.357-05:00] [gw_server3] [NOTIFICATION] [] [com.charter.customer.care.view.backing.banner.BannerFlowManager] [tid: [ACTIVE].ExecuteThread: '27' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: bxburns] [ecid: 1ca25884-aa12-4021-a3c7-b7865adbba6f-002474e8,0] [APP: chtrgwy] 2016-05-03 23:59:56.357 - TROUBLESHOOTING2 TAB CLICK - 8351200211445*** - HIR - CC-Louisville Call Center-D713-Cust Rel Coord-Internet/Phone&lt;BR /&gt;
 VALID&lt;BR /&gt;
[2016-05-03T23:59:56.193-05:00] [gw_server1] [NOTIFICATION] [] [com.charter.care.customer.memo.model.dao.MemoServiceHelper] [tid: [ACTIVE].ExecuteThread: '28' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: sshimin] [ecid: a44b71a4-e0b3-420d-9d59-fd890c508729-00243595,0] [APP: chtrgwy] 2016-05-03 23:59:56.193 - ADD MEMO INITIATED  - 8345780100010***  - UI0 - Caller verified - CC-Louisville Call Center-D719-Cust Rel Coord-Comm Repair&lt;BR /&gt;
 VALID&lt;BR /&gt;
[2016-05-03T23:59:56.193-05:00] [gw_server1] [NOTIFICATION] [] [com.charter.customer.care.view.backing.banner.BannerFlowManager] [tid: [ACTIVE].ExecuteThread: '28' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: sshimin] [ecid: a44b71a4-e0b3-420d-9d59-fd890c508729-00243595,0] [APP: chtrgwy] 2016-05-03 23:59:56.193 - ACCOUNT VERIFIED - 8345780100010*** - UI0 - CC-Louisville Call Center-D719-Cust Rel Coord-Comm Repair&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:37:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235155#M69845</guid>
      <dc:creator>kmccowen</dc:creator>
      <dc:date>2020-09-29T09:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX Help to extract USERID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235156#M69846</link>
      <description>&lt;P&gt;Hi &amp;amp; good morning,&lt;/P&gt;

&lt;P&gt;Let us know if this works:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;userId:\s(?&amp;lt;userId&amp;gt;\w+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 May 2016 14:47:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235156#M69846</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-09T14:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX Help to extract USERID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235157#M69847</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;How about:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"\[userId:\s(?&amp;lt;userID&amp;gt;[^\]]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried with this, and it worked:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats count | eval test="[com.charter.care.customer.view.device.backing.deviceStatusFlow.DeviceStatusManager] [tid: [ACTIVE].ExecuteThread: '26' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: nhorsley] [ecid: a44b71a4-e0b3-420d-9d59-fd890c508729-0024359c,0] [APP: chtrgwy] DM-provisioning-operation = REPROVISION_PHONE_INTERNET Account = 8357190022950* Mac = 001dd6725 AuditUser = CHTRGWY:nhorsley Status = INFO: QTS retry number 2 for order ID 50487161 - Location-JobCode-JobTitle - CC-Louisville Call Center-D713-Cust Rel Coord-Internet/Phone" | rex field=test "\[userId:\s(?&amp;lt;userID&amp;gt;[^\]]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 May 2016 14:48:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235157#M69847</guid>
      <dc:creator>ctaf</dc:creator>
      <dc:date>2016-05-09T14:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX Help to extract USERID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235158#M69848</link>
      <description>&lt;P&gt;This is a good way of testing regular expressions. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 15:05:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235158#M69848</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2016-05-09T15:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX Help to extract USERID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235159#M69849</link>
      <description>&lt;P&gt;a site like &lt;A href="http://regexr.com/"&gt;http://regexr.com/&lt;/A&gt; is great to test out the extraction&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;userId:\s(?P&amp;lt;userid&amp;gt;\w+)\]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 May 2016 15:13:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235159#M69849</guid>
      <dc:creator>ra01</dc:creator>
      <dc:date>2016-05-09T15:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX Help to extract USERID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235160#M69850</link>
      <description>&lt;P&gt;Thanks everybody!&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 16:36:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235160#M69850</guid>
      <dc:creator>kmccowen</dc:creator>
      <dc:date>2016-05-09T16:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX Help to extract USERID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235161#M69851</link>
      <description>&lt;P&gt;i show ra01 regexr today and then he uses it to one up me on an answer &lt;span class="lia-unicode-emoji" title=":winking_face_with_tongue:"&gt;😜&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I argue my regex is more efficient though !!!&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 18:05:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235161#M69851</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-09T18:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX Help to extract USERID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235162#M69852</link>
      <description>&lt;P&gt;I have a section about using regexr in my work wiki I wrote on Splunk. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I'm sure there's more efficient ways to write the expression. &lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 18:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235162#M69852</guid>
      <dc:creator>ra01</dc:creator>
      <dc:date>2016-05-09T18:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX Help to extract USERID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235163#M69853</link>
      <description>&lt;P&gt;Yep, i confused you with someone else I worked with today.  My apologies.  Great site though!  &lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 18:35:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-Help-to-extract-USERID/m-p/235163#M69853</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-09T18:35:47Z</dc:date>
    </item>
  </channel>
</rss>

