<?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 Regex Help! in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/364941#M107646</link>
    <description>&lt;P&gt;Hi! &lt;/P&gt;

&lt;P&gt;First time I am attempting Regex commands and I have got pretty stuck so any help would be much appreciated. I have a string data that appears in a table as "Network User::(FirstName).(Surname)".&lt;/P&gt;

&lt;P&gt;How could I use the regex command to get rid of Network User and just display the first and second name in the results table? &lt;/P&gt;

&lt;P&gt;So my search would be something like:&lt;/P&gt;

&lt;P&gt;...| stats count by user|regex......| table user, count&lt;/P&gt;

&lt;P&gt;Thanks! &lt;/P&gt;</description>
    <pubDate>Thu, 26 Apr 2018 14:05:41 GMT</pubDate>
    <dc:creator>NShimmen</dc:creator>
    <dc:date>2018-04-26T14:05:41Z</dc:date>
    <item>
      <title>Regex Help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/364941#M107646</link>
      <description>&lt;P&gt;Hi! &lt;/P&gt;

&lt;P&gt;First time I am attempting Regex commands and I have got pretty stuck so any help would be much appreciated. I have a string data that appears in a table as "Network User::(FirstName).(Surname)".&lt;/P&gt;

&lt;P&gt;How could I use the regex command to get rid of Network User and just display the first and second name in the results table? &lt;/P&gt;

&lt;P&gt;So my search would be something like:&lt;/P&gt;

&lt;P&gt;...| stats count by user|regex......| table user, count&lt;/P&gt;

&lt;P&gt;Thanks! &lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 14:05:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/364941#M107646</guid>
      <dc:creator>NShimmen</dc:creator>
      <dc:date>2018-04-26T14:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/364942#M107647</link>
      <description>&lt;P&gt;Try to get those field extractions done. You can do it inline with the following&lt;BR /&gt;
|rex "Network\sUser::(?P\w+)).((?P\w+)) | table FirstName,Surname,count&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 14:52:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/364942#M107647</guid>
      <dc:creator>David_Naylor</dc:creator>
      <dc:date>2018-04-26T14:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/364943#M107648</link>
      <description>&lt;P&gt;An example of regex extraction that would work with the example string you provided:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=user "::\((?P&amp;lt;first_name&amp;gt;[^\)]+)\)\.\((?P&amp;lt;surname&amp;gt;[^\)]+)\)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Apr 2018 14:54:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/364943#M107648</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2018-04-26T14:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/364944#M107649</link>
      <description>&lt;P&gt;Hello, &lt;BR /&gt;
Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.| stats count by user | rex field=a "::\((?&amp;lt;FirstName&amp;gt;[^.)]*)\)\.\((?&amp;lt;Surname&amp;gt;[^.)]*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults |eval a= "Network User::(FirstName).(Surname)" | rex field=a "::\((?&amp;lt;FirstName&amp;gt;[^.)]*)\)\.\((?&amp;lt;Surname&amp;gt;[^.)]*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Apr 2018 15:37:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/364944#M107649</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2018-04-26T15:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/364945#M107650</link>
      <description>&lt;P&gt;Can you try something:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| stats count by user| rex field=user mode=sed "s/Network User::*//g" | table user, count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Apr 2018 17:29:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/364945#M107650</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-26T17:29:03Z</dc:date>
    </item>
  </channel>
</rss>

