<?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 to split names extracted from a string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-to-split-names-extracted-from-a-string/m-p/497777#M138643</link>
    <description>&lt;P&gt;You just need to expand Employee fields values:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = active_directory directReports=* sAMAccountName=* 
| rex field=directReports max_match=0 "CN=(?&amp;lt;memberOf&amp;gt;[^,]+)"
| rex field=memberOf mode=sed "s/\./ /g"
| rename sAMAccountName as Manager memberOf as Employee
| mvexpand Employee
| table Manager Employee
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 19 Mar 2020 13:47:25 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2020-03-19T13:47:25Z</dc:date>
    <item>
      <title>regex to split names extracted from a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-split-names-extracted-from-a-string/m-p/497776#M138642</link>
      <description>&lt;P&gt;This is a little tricky to explain but I have this query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = active_directory directReports=* sAMAccountName=* 
| rex field=directReports max_match=0 "CN=(?&amp;lt;memberOf&amp;gt;[^,]+)"
| rex field=memberOf mode=sed "s/\./ /g"
| rename sAMAccountName as Manager memberOf as Employee
| table Manager Employee
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This displays as manager in column 1 and lists employees in column 2 :&lt;/P&gt;

&lt;P&gt;How can I unlist the employees as separate rows as follows&lt;/P&gt;

&lt;P&gt;Manager         employee&lt;BR /&gt;
Manager         employee&lt;BR /&gt;
Manager         employee&lt;BR /&gt;
Manager         employee               &lt;/P&gt;

&lt;P&gt;TIA        &lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 13:25:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-split-names-extracted-from-a-string/m-p/497776#M138642</guid>
      <dc:creator>nathanluke86</dc:creator>
      <dc:date>2020-03-19T13:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: regex to split names extracted from a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-split-names-extracted-from-a-string/m-p/497777#M138643</link>
      <description>&lt;P&gt;You just need to expand Employee fields values:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = active_directory directReports=* sAMAccountName=* 
| rex field=directReports max_match=0 "CN=(?&amp;lt;memberOf&amp;gt;[^,]+)"
| rex field=memberOf mode=sed "s/\./ /g"
| rename sAMAccountName as Manager memberOf as Employee
| mvexpand Employee
| table Manager Employee
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Mar 2020 13:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-split-names-extracted-from-a-string/m-p/497777#M138643</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-19T13:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: regex to split names extracted from a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-split-names-extracted-from-a-string/m-p/497778#M138644</link>
      <description>&lt;P&gt;Thanks @manjunathmeti &lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 13:55:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-split-names-extracted-from-a-string/m-p/497778#M138644</guid>
      <dc:creator>nathanluke86</dc:creator>
      <dc:date>2020-03-19T13:55:26Z</dc:date>
    </item>
  </channel>
</rss>

