<?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 search for the users logging into a server that have never logged in before. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-users-logging-into-a-server-that-have/m-p/306480#M164725</link>
    <description>&lt;P&gt;Hi @ntalwar,&lt;/P&gt;

&lt;P&gt;I'll prefer below steps to achieve this.&lt;/P&gt;

&lt;P&gt;1.) Create CSV file which contains list of users who already logged into the server previously ( If you have this data in splunk you can fetch those data and generate lookup).&lt;BR /&gt;
2.) Upload that csv in Splunk.&lt;BR /&gt;
3.)  Run you search to find users who logging into server and compare that against csv file which you have uploaded in splunk (Using &lt;CODE&gt;lookup&lt;/CODE&gt; command)&lt;BR /&gt;
4.) Filter users who are not in lookup file (Something like &lt;CODE&gt;| where isnull(lookup_user)&lt;/CODE&gt; )&lt;BR /&gt;
5.) Once you have result you can run this as scheduled search to send result over email and in same query I'll use &lt;CODE&gt;outputlookup&lt;/CODE&gt; in last to update existing lookup file which contains logged in user details so in future when query will run it will not generate result against those newly logged in user.&lt;/P&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Harshil&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2017 09:21:17 GMT</pubDate>
    <dc:creator>harsmarvania57</dc:creator>
    <dc:date>2017-11-29T09:21:17Z</dc:date>
    <item>
      <title>How to search for the users logging into a server that have never logged in before.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-users-logging-into-a-server-that-have/m-p/306479#M164724</link>
      <description>&lt;P&gt;Working on real time data.I want to search for users logging into the server that have never logged before.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 04:09:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-users-logging-into-a-server-that-have/m-p/306479#M164724</guid>
      <dc:creator>ntalwar</dc:creator>
      <dc:date>2017-11-29T04:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for the users logging into a server that have never logged in before.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-users-logging-into-a-server-that-have/m-p/306480#M164725</link>
      <description>&lt;P&gt;Hi @ntalwar,&lt;/P&gt;

&lt;P&gt;I'll prefer below steps to achieve this.&lt;/P&gt;

&lt;P&gt;1.) Create CSV file which contains list of users who already logged into the server previously ( If you have this data in splunk you can fetch those data and generate lookup).&lt;BR /&gt;
2.) Upload that csv in Splunk.&lt;BR /&gt;
3.)  Run you search to find users who logging into server and compare that against csv file which you have uploaded in splunk (Using &lt;CODE&gt;lookup&lt;/CODE&gt; command)&lt;BR /&gt;
4.) Filter users who are not in lookup file (Something like &lt;CODE&gt;| where isnull(lookup_user)&lt;/CODE&gt; )&lt;BR /&gt;
5.) Once you have result you can run this as scheduled search to send result over email and in same query I'll use &lt;CODE&gt;outputlookup&lt;/CODE&gt; in last to update existing lookup file which contains logged in user details so in future when query will run it will not generate result against those newly logged in user.&lt;/P&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Harshil&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 09:21:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-the-users-logging-into-a-server-that-have/m-p/306480#M164725</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-11-29T09:21:17Z</dc:date>
    </item>
  </channel>
</rss>

