<?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 do I filter my search to only return search applications that have not been accessed by anyone in the last 60 days? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284494#M86046</link>
    <description>&lt;P&gt;So any idea how can i approach this to get the result for 31-60 days?&lt;/P&gt;</description>
    <pubDate>Sun, 21 Feb 2016 13:30:09 GMT</pubDate>
    <dc:creator>taraksinha</dc:creator>
    <dc:date>2016-02-21T13:30:09Z</dc:date>
    <item>
      <title>How do I filter my search to only return search applications that have not been accessed by anyone in the last 60 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284485#M86037</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I ran the search below to find search Applications which are not accessed in last 2 months by anyone, but it's instead showing results from now (today's date) to the past 60 days. I only need to output applications that have never been accessed by anyone within the last 60 days.&lt;/P&gt;

&lt;P&gt;Search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*access.log earliest=-60d  /app/ | rex "\/app\/(?\w+)\/(?\w+)\"" | search AppName=search AND ViewName=* | stats max(_time) as LastAccessed by AppName, ViewName | eval age=now()-LastAccessed | where age&amp;gt;20 |eval Date=strftime(LastAccessed,"%d-%m-%Y %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Feb 2016 09:24:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284485#M86037</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2016-02-18T09:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter my search to only return search applications that have not been accessed by anyone in the last 60 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284486#M86038</link>
      <description>&lt;P&gt;The &lt;CODE&gt;where&lt;/CODE&gt; clause of this search finds apps accessed at least 20 seconds ago, which is probably not what you want.  Changing 20 to 5184000 will return those accessed at least 60 days ago.&lt;/P&gt;

&lt;P&gt;That said, this search still only finds apps that were accessed 2 months ago.  It does not identify those that have &lt;EM&gt;not&lt;/EM&gt; been accessed since then.  To do that, you will need a list of all apps from which you remove those which have been accessed in the last 60 days.  You can get a list of all apps installed on your system using &lt;CODE&gt;rest /services/apps/local&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 13:02:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284486#M86038</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-02-18T13:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter my search to only return search applications that have not been accessed by anyone in the last 60 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284487#M86039</link>
      <description>&lt;P&gt;I tried to change age 20 to  5184000, but not showing any result, Can be add owner and user filed in this query?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 07:31:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284487#M86039</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2016-02-19T07:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter my search to only return search applications that have not been accessed by anyone in the last 60 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284488#M86040</link>
      <description>&lt;P&gt;Just changing 20 to 5184000 is not enough.  That makes the &lt;CODE&gt;where&lt;/CODE&gt; clause match &lt;CODE&gt;earliest&lt;/CODE&gt; and return no results.  Even if &lt;CODE&gt;earliest&lt;/CODE&gt; is changed, the search is still returning apps that were accessed at least 60 days ago rather than those not accessed in the last 60 days.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 13:32:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284488#M86040</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-02-19T13:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter my search to only return search applications that have not been accessed by anyone in the last 60 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284489#M86041</link>
      <description>&lt;P&gt;will you give me similar query along with user and owner field?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:17:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284489#M86041</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2016-02-19T14:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter my search to only return search applications that have not been accessed by anyone in the last 60 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284490#M86042</link>
      <description>&lt;P&gt;I need output for user who often or never accessed the App_Name "search" more than 60 days with table such as user,Viewname,title,App_name,owner,Date,Last accessed.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:52:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284490#M86042</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2020-09-29T08:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter my search to only return search applications that have not been accessed by anyone in the last 60 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284491#M86043</link>
      <description>&lt;P&gt;I'm not sure which query you mean.  I see a user field in access.log, but not an owner field.  It could be part of another field.&lt;BR /&gt;
The REST query has an eai:acl.owner field, but no user field since it's a raw app list.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:49:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284491#M86043</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-02-19T14:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter my search to only return search applications that have not been accessed by anyone in the last 60 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284492#M86044</link>
      <description>&lt;P&gt;I mean this below query, is it any command to add user and owner field ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*access.log earliest=-60d  /app/ | rex "\/app\/(?\w+)\/(?\w+)\"" | search AppName=search AND ViewName=* | stats max(_time) as LastAccessed by AppName, ViewName | eval age=now()-LastAccessed | where age&amp;gt;20 |eval Date=strftime(LastAccessed,"%d-%m-%Y %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Feb 2016 09:21:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284492#M86044</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2016-02-21T09:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter my search to only return search applications that have not been accessed by anyone in the last 60 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284493#M86045</link>
      <description>&lt;P&gt;Just a reminder: &lt;CODE&gt;index=_internal&lt;/CODE&gt; has a default retention time of 30 days - so you will not be able to find anything for days 31-60.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2016 09:26:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284493#M86045</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-02-21T09:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter my search to only return search applications that have not been accessed by anyone in the last 60 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284494#M86046</link>
      <description>&lt;P&gt;So any idea how can i approach this to get the result for 31-60 days?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2016 13:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-return-search-applications/m-p/284494#M86046</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2016-02-21T13:30:09Z</dc:date>
    </item>
  </channel>
</rss>

