<?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: Splunk ES - Completely Inactive Accounts - Multiple Logins in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Completely-Inactive-Accounts-Multiple-Logins/m-p/132649#M407</link>
    <description>&lt;P&gt;I should have mentioned before that we are running ES 2.4, not 3.0.  Looking at the same correlation search everything is the same except the inactive_account macro:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;inactive_account_usage&lt;/CODE&gt; | &lt;CODE&gt;daysago($greaterThan$,"&amp;gt;=")&lt;/CODE&gt; | sort 0 -dayDiff&lt;/P&gt;

&lt;P&gt;And if I go a bit deeper, the macro for inactive_account_usage:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;access_tracker&lt;/CODE&gt; | stats values(dest) as dest,values(tag) as tag,min(firstTime) as firstTime,max(second2lastTime) as second2lastTime,max(lastTime) as lastTime by user | eval _time=lastTime | eval inactiveDays=(lastTime-second2lastTime)/86400 | sort 0 - inactiveDays&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:29:53 GMT</pubDate>
    <dc:creator>jonathan_cooper</dc:creator>
    <dc:date>2020-09-28T16:29:53Z</dc:date>
    <item>
      <title>Splunk ES - Completely Inactive Accounts - Multiple Logins</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Completely-Inactive-Accounts-Multiple-Logins/m-p/132647#M405</link>
      <description>&lt;P&gt;I have a question regarding the access tracker in ES, specifically the correlation search "Completely Inactive Accounts".&lt;/P&gt;

&lt;P&gt;In my environment, user logins are not always associated with the same host consistently, besides their own personal workstation.  Certain authentication tools such as AD or other applications that have load balancers, route user authentication requests to multiple servers.  This is causing false positives with this correlation search as user's are being seen as inactive, generating a notable event, even though their user is logging into other hosts much more frequently (i.e. their own workstation).  As a result, the significant number of "inactive account" notable events is causing errors in the dashboard rendering since the number of events far exceeds the JSChart limits.&lt;/P&gt;

&lt;P&gt;I've been trying to figure out the best way to adjust either the correlation search or the populating searches that track all access via the access_tracker lookup table.  I'm looking for suggestions on the best way to reduce these false positives.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2014 16:07:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Completely-Inactive-Accounts-Multiple-Logins/m-p/132647#M405</guid>
      <dc:creator>jonathan_cooper</dc:creator>
      <dc:date>2014-04-15T16:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk ES - Completely Inactive Accounts - Multiple Logins</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Completely-Inactive-Accounts-Multiple-Logins/m-p/132648#M406</link>
      <description>&lt;P&gt;Jonathan,&lt;/P&gt;

&lt;P&gt;A little background on this correlation.  The  "Access - Completely Inactive Account - Rule" saved search is what generates "Completely Inactive Account" notable events.  This can be modified to produce the results that you desire.   &lt;/P&gt;

&lt;P&gt;Currently (in ES 3.0), the ootb definition for this search is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| `inactive_accounts(90)` | `settags("access")` | `ctime(lastTime)` | table user,dest,orig_tag,dayDiff,lastTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can see this correlation search uses a macro `inactive_accounts` as the logic to determine what an inactive account is.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup append=T access_tracker | stats min(firstTime) as firstTime,max(lastTime) as lastTime by user | `get_identity4events(user)` | eval _time=lastTime | `daysago($greaterThan$,"&amp;gt;=")`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Since we do not split by host (only user) in our stats command, messages from a username logging into unique hosts will be consolidated (unless the usernames are unique).&lt;/P&gt;

&lt;P&gt;Can you also elaborate on which dashboard and panel are giving you errors rendering.  I have seen errors related to truncating results when too much data is passed to column/timecharts.  Here are some options for charts experiencing truncation issues:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;The limit is on the total number of&lt;BR /&gt;
points that are drawn (the actual&lt;BR /&gt;
limit is 1500 I believe), so you have&lt;BR /&gt;
a few options: &lt;/P&gt;

&lt;P&gt;1) choose a larger span&lt;BR /&gt;
for timechart, or try letting it&lt;BR /&gt;
auto-span&lt;/P&gt;

&lt;P&gt;2) set a limit on the number&lt;BR /&gt;
of series that are shown &lt;/P&gt;

&lt;P&gt;3) use a line&lt;BR /&gt;
or area chart (they have a higher&lt;BR /&gt;
limit because they don't have the&lt;BR /&gt;
overhead of drawing a shape for each&lt;BR /&gt;
point)&lt;/P&gt;

&lt;P&gt;4) In a dashboard, you can set the limit per panel like this:&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.chart.resultTruncationLimit"&amp;gt;15000&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if you have any more questions.&lt;/P&gt;

&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2014 16:22:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Completely-Inactive-Accounts-Multiple-Logins/m-p/132648#M406</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2014-04-24T16:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk ES - Completely Inactive Accounts - Multiple Logins</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Completely-Inactive-Accounts-Multiple-Logins/m-p/132649#M407</link>
      <description>&lt;P&gt;I should have mentioned before that we are running ES 2.4, not 3.0.  Looking at the same correlation search everything is the same except the inactive_account macro:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;inactive_account_usage&lt;/CODE&gt; | &lt;CODE&gt;daysago($greaterThan$,"&amp;gt;=")&lt;/CODE&gt; | sort 0 -dayDiff&lt;/P&gt;

&lt;P&gt;And if I go a bit deeper, the macro for inactive_account_usage:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;access_tracker&lt;/CODE&gt; | stats values(dest) as dest,values(tag) as tag,min(firstTime) as firstTime,max(second2lastTime) as second2lastTime,max(lastTime) as lastTime by user | eval _time=lastTime | eval inactiveDays=(lastTime-second2lastTime)/86400 | sort 0 - inactiveDays&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:29:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Completely-Inactive-Accounts-Multiple-Logins/m-p/132649#M407</guid>
      <dc:creator>jonathan_cooper</dc:creator>
      <dc:date>2020-09-28T16:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk ES - Completely Inactive Accounts - Multiple Logins</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Completely-Inactive-Accounts-Multiple-Logins/m-p/132650#M408</link>
      <description>&lt;P&gt;I have a follow up question that I could not find an answer for in the docs.  Once a user that is considered inactive is removed from the environment, how is that user removed from the access_tracker in order for it not be alerted on again?  Is this a manual process of editing the access_tracker lookup table?  I appreciate any help.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:42:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Completely-Inactive-Accounts-Multiple-Logins/m-p/132650#M408</guid>
      <dc:creator>jonathan_cooper</dc:creator>
      <dc:date>2020-09-28T16:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk ES - Completely Inactive Accounts - Multiple Logins</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Completely-Inactive-Accounts-Multiple-Logins/m-p/132651#M409</link>
      <description>&lt;P&gt;Jonathan,&lt;BR /&gt;
Regarding removal of users from access_tracker which have been removed from the environment this would be a manual process of editing the access_tracker.  To make this manual process easier, you can add access_tracker to the list of editable lookups which will allow you to edit the CSV from Configure-&amp;gt;Data Enrichment-&amp;gt;Lists and Lookups using our graphical editor.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:42:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Completely-Inactive-Accounts-Multiple-Logins/m-p/132651#M409</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2020-09-28T16:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk ES - Completely Inactive Accounts - Multiple Logins</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Completely-Inactive-Accounts-Multiple-Logins/m-p/132652#M410</link>
      <description>&lt;P&gt;Regarding your prev comment about the ES 2.4 version of inactive_accounts, It looks like the inactive calculation is not as optimal as the ES 3.0 version.  You can put a local override in place for the &lt;CODE&gt;inactive_accounts(1)&lt;/CODE&gt; macro to the latest version:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;inputlookup append=T access_tracker | stats min(firstTime) as firstTime,max(lastTime) as lastTime by user | `get_identity4events(user)` | eval _time=lastTime | `daysago($greaterThan$,"&amp;gt;=")`
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:42:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Completely-Inactive-Accounts-Multiple-Logins/m-p/132652#M410</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2020-09-28T16:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk ES - Completely Inactive Accounts - Multiple Logins</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Completely-Inactive-Accounts-Multiple-Logins/m-p/132653#M411</link>
      <description>&lt;P&gt;I was able to solve this by adding a "... | dedup user | ..." to the inactive_accounts_usage macro.&lt;/P&gt;

&lt;P&gt;Unfortunately, when I tried your suggestion, I noticed that even in 2.4 it was still organizing the data by user.  For some reason though, there would still be duplicates for some users, allowing them to age beyond the 90-day mark thus causing a false positive notable event.&lt;/P&gt;

&lt;P&gt;Thank you for your help though, it did point me in the right direction.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:48:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Completely-Inactive-Accounts-Multiple-Logins/m-p/132653#M411</guid>
      <dc:creator>jonathan_cooper</dc:creator>
      <dc:date>2020-09-28T16:48:36Z</dc:date>
    </item>
  </channel>
</rss>

