<?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: Identify computers not being used in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Identify-computers-not-being-used/m-p/486279#M193668</link>
    <description>&lt;P&gt;This kinda falls into the category of searching for something that is not there.  it's a challenge.  See &lt;A href="https://www.duanewaddle.com/proving-a-negative/"&gt;https://www.duanewaddle.com/proving-a-negative/&lt;/A&gt; for a good discussion of it.&lt;/P&gt;

&lt;P&gt;The first assumption is you have authentication logs in Splunk going back as far as needed to prove disuse.&lt;/P&gt;

&lt;P&gt;Then there are two methods you could use.  The first looks for the most recent logon for all computers.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype=someauthtype | stats max(_time) as lastLogon by ComputerName
| eval days=round((now() - lastLogon)/86400, 0)
| table ComputerName, lastLogon, days
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The second approach is similar, but allows for computers with no record of a logon.  It requires a list of all ComputerName values in a CSV file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype=someauthtype | fillnull value=0 lastLogon _time 
| inputlookup append=true computers.csv
| stats max(_time) as lastLogon by ComputerName
| table ComputerName, lastLogon, days
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 12 Jan 2020 19:49:01 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-01-12T19:49:01Z</dc:date>
    <item>
      <title>Identify computers not being used</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Identify-computers-not-being-used/m-p/486278#M193667</link>
      <description>&lt;P&gt;I believe that we have computers on our domain that are not actively being used by users and I would like to highlight that to see if we can recoup those computers elsewhere.  How can I identify the last time any user logged onto the computer and then translate that to the number of days since the computer was logged onto by anyone?     I would like the end result to be a table of ComputerName, lastlogontimestamp, and actual number of days since last logged on by anyone in descending order&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2020 17:46:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Identify-computers-not-being-used/m-p/486278#M193667</guid>
      <dc:creator>tonygpe</dc:creator>
      <dc:date>2020-01-12T17:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Identify computers not being used</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Identify-computers-not-being-used/m-p/486279#M193668</link>
      <description>&lt;P&gt;This kinda falls into the category of searching for something that is not there.  it's a challenge.  See &lt;A href="https://www.duanewaddle.com/proving-a-negative/"&gt;https://www.duanewaddle.com/proving-a-negative/&lt;/A&gt; for a good discussion of it.&lt;/P&gt;

&lt;P&gt;The first assumption is you have authentication logs in Splunk going back as far as needed to prove disuse.&lt;/P&gt;

&lt;P&gt;Then there are two methods you could use.  The first looks for the most recent logon for all computers.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype=someauthtype | stats max(_time) as lastLogon by ComputerName
| eval days=round((now() - lastLogon)/86400, 0)
| table ComputerName, lastLogon, days
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The second approach is similar, but allows for computers with no record of a logon.  It requires a list of all ComputerName values in a CSV file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype=someauthtype | fillnull value=0 lastLogon _time 
| inputlookup append=true computers.csv
| stats max(_time) as lastLogon by ComputerName
| table ComputerName, lastLogon, days
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 Jan 2020 19:49:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Identify-computers-not-being-used/m-p/486279#M193668</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-01-12T19:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Identify computers not being used</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Identify-computers-not-being-used/m-p/486280#M193669</link>
      <description>&lt;P&gt;Thanks...I will try the first one tomorrow because I think that will work.   &lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2020 20:08:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Identify-computers-not-being-used/m-p/486280#M193669</guid>
      <dc:creator>tonygpe</dc:creator>
      <dc:date>2020-01-12T20:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Identify computers not being used</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Identify-computers-not-being-used/m-p/598995#M208552</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/35300"&gt;@tonygpe&lt;/a&gt;&amp;nbsp; Curious. Did this work for you. Looking for a similar solution&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 23:21:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Identify-computers-not-being-used/m-p/598995#M208552</guid>
      <dc:creator>dionrivera</dc:creator>
      <dc:date>2022-05-23T23:21:55Z</dc:date>
    </item>
  </channel>
</rss>

