<?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: Remove CN= string and the rest from my search results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Remove-CN-string-and-the-rest-from-my-search-results/m-p/367687#M108426</link>
    <description>&lt;P&gt;Hi jnahuelperez, As our friend send you them in Splunk documentation if need detail explanation, I have learned from this links i hope this helps you: &lt;A href="https://dzone.com/articles/starting-with-regular-expression-in-splunk"&gt;https://dzone.com/articles/starting-with-regular-expression-in-splunk&lt;/A&gt; &amp;amp; &lt;A href="https://mindmajix.com/splunk"&gt;https://mindmajix.com/splunk&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Aug 2018 10:18:21 GMT</pubDate>
    <dc:creator>GnanasekarP</dc:creator>
    <dc:date>2018-08-29T10:18:21Z</dc:date>
    <item>
      <title>Remove CN= string and the rest from my search results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-CN-string-and-the-rest-from-my-search-results/m-p/367683#M108422</link>
      <description>&lt;P&gt;Hi guys!&lt;/P&gt;

&lt;P&gt;I'm loking for a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="WinEventLog:Security" name = "A member *group*" Group_Name="*admin*" |
table _time src_user user Group_Name name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The search works great! the problem are the results, the "user" Column give me something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;CN=MyUserDomain,OU=SomeOrgUnit,OU=SomeOrgUnit,OU=SomeOrgUnit,OU=SomeOrgUnit,OU=SomeOrgUnit,DC=com,DC=net
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I only wants to get "MyUserDomain". Is there anyway? I tried with &lt;STRONG&gt;eval user = trim(replace(user, "CN=", ""))&lt;/STRONG&gt; but it only removes the first part of the string&lt;/P&gt;

&lt;P&gt;Thanks a Lot!&lt;/P&gt;

&lt;P&gt;Nahuel&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 14:12:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-CN-string-and-the-rest-from-my-search-results/m-p/367683#M108422</guid>
      <dc:creator>jnahuelperez35</dc:creator>
      <dc:date>2017-05-08T14:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Remove CN= string and the rest from my search results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-CN-string-and-the-rest-from-my-search-results/m-p/367684#M108423</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="WinEventLog:Security" name = "A member *group*" Group_Name="*admin*" |
 table _time src_user user Group_Name name |
 eval user=replace(user,"CN=([^,]+),.+","\1")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 May 2017 14:47:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-CN-string-and-the-rest-from-my-search-results/m-p/367684#M108423</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-08T14:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Remove CN= string and the rest from my search results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-CN-string-and-the-rest-from-my-search-results/m-p/367685#M108424</link>
      <description>&lt;P&gt;Thanks a Lot! where can i learn more about regular expressions codification like this?&lt;/P&gt;

&lt;P&gt;Again, thanks!&lt;/P&gt;

&lt;P&gt;Nahuel&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 15:43:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-CN-string-and-the-rest-from-my-search-results/m-p/367685#M108424</guid>
      <dc:creator>jnahuelperez35</dc:creator>
      <dc:date>2017-05-08T15:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Remove CN= string and the rest from my search results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-CN-string-and-the-rest-from-my-search-results/m-p/367686#M108425</link>
      <description>&lt;P&gt;Splunk provides some level of information about REGEX that you can use here&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.3/Knowledge/AboutSplunkregularexpressions"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.3/Knowledge/AboutSplunkregularexpressions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you google you can definitely find some external resources like this&lt;BR /&gt;
&lt;A href="http://www.learnsplunk.com/splunk-regex-tutorial.html"&gt;http://www.learnsplunk.com/splunk-regex-tutorial.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For practicing/testing, I use &lt;A href="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt; site.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 15:53:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-CN-string-and-the-rest-from-my-search-results/m-p/367686#M108425</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-08T15:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Remove CN= string and the rest from my search results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-CN-string-and-the-rest-from-my-search-results/m-p/367687#M108426</link>
      <description>&lt;P&gt;Hi jnahuelperez, As our friend send you them in Splunk documentation if need detail explanation, I have learned from this links i hope this helps you: &lt;A href="https://dzone.com/articles/starting-with-regular-expression-in-splunk"&gt;https://dzone.com/articles/starting-with-regular-expression-in-splunk&lt;/A&gt; &amp;amp; &lt;A href="https://mindmajix.com/splunk"&gt;https://mindmajix.com/splunk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 10:18:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-CN-string-and-the-rest-from-my-search-results/m-p/367687#M108426</guid>
      <dc:creator>GnanasekarP</dc:creator>
      <dc:date>2018-08-29T10:18:21Z</dc:date>
    </item>
  </channel>
</rss>

