<?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: How to populate results from regex into an ldap search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-populate-results-from-regex-into-an-ldap-search/m-p/537702#M152024</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;. This works and displays the name properly but when used with other items that need to be tabled, it's the only field that returns results. Full search:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=azuread sourcetype="ms:aad:audit" activityDisplayName="Update service principal" OR activityDisplayName="Add service principal credentials"
| rex field=initiatedBy.user.userPrincipalName "ex(?&amp;lt;GUID&amp;gt;\d+)z\@"
| map search="ldapsearch domain=DEFAULT search=\"(&amp;amp;(objectClass=user)(exguid=$GUID$))\""
| table activityDateTime, activityDisplayName, operationType, targetResources{}.displayName, targetResources{}.id, targetResources{}.modifiedProperties{}.displayName, targetResources{}.modifiedProperties{}.oldValue, targetResources{}.modifiedProperties{}.newValue, initiatedBy.user.userPrincipalName, name&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 28 Jan 2021 19:42:13 GMT</pubDate>
    <dc:creator>fdevera</dc:creator>
    <dc:date>2021-01-28T19:42:13Z</dc:date>
    <item>
      <title>How to populate results from regex into an ldap search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-populate-results-from-regex-into-an-ldap-search/m-p/537514#M151965</link>
      <description>&lt;P&gt;How would I take the results from this search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=initiatedBy.user.userPrincipalName "ex(?&amp;lt;GUID&amp;gt;\d+)z\@"&lt;/LI-CODE&gt;&lt;P&gt;And populate it into this LDAP search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| ldapsearch domain=DEFAULT search="(&amp;amp;(objectClass=user)(exguid=GUID))"
| table name&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Jan 2021 23:49:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-populate-results-from-regex-into-an-ldap-search/m-p/537514#M151965</guid>
      <dc:creator>fdevera</dc:creator>
      <dc:date>2021-01-27T23:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate results from regex into an ldap search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-populate-results-from-regex-into-an-ldap-search/m-p/537522#M151968</link>
      <description>&lt;P&gt;Depending on how many results the first search returns, this may work&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
| rex field=initiatedBy.user.userPrincipalName "ex(?&amp;lt;GUID&amp;gt;\d+)z\@"
| map search="ldapsearch domain=DEFAULT search=\"(&amp;amp;(objectClass=user)(exguid=$GUID$))\""
| table name&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Jan 2021 01:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-populate-results-from-regex-into-an-ldap-search/m-p/537522#M151968</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-01-28T01:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate results from regex into an ldap search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-populate-results-from-regex-into-an-ldap-search/m-p/537702#M152024</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;. This works and displays the name properly but when used with other items that need to be tabled, it's the only field that returns results. Full search:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=azuread sourcetype="ms:aad:audit" activityDisplayName="Update service principal" OR activityDisplayName="Add service principal credentials"
| rex field=initiatedBy.user.userPrincipalName "ex(?&amp;lt;GUID&amp;gt;\d+)z\@"
| map search="ldapsearch domain=DEFAULT search=\"(&amp;amp;(objectClass=user)(exguid=$GUID$))\""
| table activityDateTime, activityDisplayName, operationType, targetResources{}.displayName, targetResources{}.id, targetResources{}.modifiedProperties{}.displayName, targetResources{}.modifiedProperties{}.oldValue, targetResources{}.modifiedProperties{}.newValue, initiatedBy.user.userPrincipalName, name&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Jan 2021 19:42:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-populate-results-from-regex-into-an-ldap-search/m-p/537702#M152024</guid>
      <dc:creator>fdevera</dc:creator>
      <dc:date>2021-01-28T19:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate results from regex into an ldap search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-populate-results-from-regex-into-an-ldap-search/m-p/537742#M152035</link>
      <description>&lt;P&gt;I have no suggestions about that.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 22:00:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-populate-results-from-regex-into-an-ldap-search/m-p/537742#M152035</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-01-28T22:00:30Z</dc:date>
    </item>
  </channel>
</rss>

