<?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 I need to match the user col to the Expired user col from two different datasets in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/I-need-to-match-the-user-col-to-the-Expired-user-col-from-two/m-p/461698#M6688</link>
    <description>&lt;P&gt;I need an SPL that will take input from Authentication dataset in the Authentication datamodel, at the same time taking the expired_identities dataset from the  Identity_Management datamodel. I want only the matches then i need the event time from when the authentication happened and when the identity was expired then eval. Below is what I have so far, it appends both data sources together and foreach is supposed to look for matches, it does, but I think it is only comparing the side by side column not searching the entire column for each entry in  users. Thanks any help would be greatly appreciated. &lt;/P&gt;

&lt;P&gt;| datamodel Authentication "Authentication" search&lt;BR /&gt;
| stats count by Authentication.user | rename Authentication.user as user &lt;BR /&gt;
| appendcols&lt;BR /&gt;
    [| datamodel Identity_Management "Expired_Identities" search&lt;BR /&gt;
    | stats count by All_Identities.LoginID]&lt;BR /&gt;
| foreach user &lt;BR /&gt;
    [eval match=if(user=All_Identities.LoginID, user, NULL)]&lt;BR /&gt;
| table user All_Identities.LoginID count match&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:02:16 GMT</pubDate>
    <dc:creator>MikeVenable</dc:creator>
    <dc:date>2020-09-30T04:02:16Z</dc:date>
    <item>
      <title>I need to match the user col to the Expired user col from two different datasets</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/I-need-to-match-the-user-col-to-the-Expired-user-col-from-two/m-p/461698#M6688</link>
      <description>&lt;P&gt;I need an SPL that will take input from Authentication dataset in the Authentication datamodel, at the same time taking the expired_identities dataset from the  Identity_Management datamodel. I want only the matches then i need the event time from when the authentication happened and when the identity was expired then eval. Below is what I have so far, it appends both data sources together and foreach is supposed to look for matches, it does, but I think it is only comparing the side by side column not searching the entire column for each entry in  users. Thanks any help would be greatly appreciated. &lt;/P&gt;

&lt;P&gt;| datamodel Authentication "Authentication" search&lt;BR /&gt;
| stats count by Authentication.user | rename Authentication.user as user &lt;BR /&gt;
| appendcols&lt;BR /&gt;
    [| datamodel Identity_Management "Expired_Identities" search&lt;BR /&gt;
    | stats count by All_Identities.LoginID]&lt;BR /&gt;
| foreach user &lt;BR /&gt;
    [eval match=if(user=All_Identities.LoginID, user, NULL)]&lt;BR /&gt;
| table user All_Identities.LoginID count match&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:02:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/I-need-to-match-the-user-col-to-the-Expired-user-col-from-two/m-p/461698#M6688</guid>
      <dc:creator>MikeVenable</dc:creator>
      <dc:date>2020-09-30T04:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: I need to match the user col to the Expired user col from two different datasets</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/I-need-to-match-the-user-col-to-the-Expired-user-col-from-two/m-p/461699#M6689</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| datamodel Authentication "Authentication" search 
| stats count by Authentication.user 
| rename Authentication.* as *
| append 
    [| datamodel Identity_Management "Expired_Identities" search 
    | stats count by All_Identities.LoginID
    | rename All_Identities.* as *] 
| eval user=coalesce(user, LoginID)
| stats sum(count) as count by user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi, @MikeVenable&lt;BR /&gt;
how about this?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 12:10:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/I-need-to-match-the-user-col-to-the-Expired-user-col-from-two/m-p/461699#M6689</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-05T12:10:00Z</dc:date>
    </item>
  </channel>
</rss>

