<?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: Search all the login events from a location in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359338#M162151</link>
    <description>&lt;P&gt;Ok so then just change the earliest time you are looking at it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; search *login* earliest=-30d
 | eval unique_date= date_mday +"/" + date_month
 | stats count by unique_date, user
 | stats count by user
 | eval crossed_threshold=if(count&amp;gt;110,"True","False")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 19 Mar 2018 18:09:50 GMT</pubDate>
    <dc:creator>tiagofbmm</dc:creator>
    <dc:date>2018-03-19T18:09:50Z</dc:date>
    <item>
      <title>Search all the login events from a location</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359333#M162146</link>
      <description>&lt;P&gt;Need to run a report where the user is supposed to work remotely for 110 days in any given 365 days. The 365 days is a rolling window. Within any 365 the user is supposed to work only 110 days. Can someone help me with the logic&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 17:31:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359333#M162146</guid>
      <dc:creator>jarapally</dc:creator>
      <dc:date>2018-03-19T17:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Search all the login events from a location</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359334#M162147</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search *login* earliest=-365d
| eval unique_date= date_mday +"/" + date_month
| stats count by unique_date, user
| stats count by user
| eval crossed_threshold=if(count&amp;gt;110,"True","False")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the result of that search is greater than 110 for any user in a 365 days period, then he crossed your threshold.&lt;/P&gt;

&lt;P&gt;Could this sketch be according to your needs?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 17:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359334#M162147</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-19T17:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Search all the login events from a location</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359335#M162148</link>
      <description>&lt;P&gt;We are running the report every 30days so using a lookup to store all the remote logins. Can you modify the search based on that&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 17:51:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359335#M162148</guid>
      <dc:creator>jarapally</dc:creator>
      <dc:date>2018-03-19T17:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Search all the login events from a location</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359336#M162149</link>
      <description>&lt;P&gt;Sorry I'm not following now. Do you want to store the results of this search in a lookup? Or do you have a lookup with something else that you want to include in the search?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 17:53:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359336#M162149</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-19T17:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Search all the login events from a location</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359337#M162150</link>
      <description>&lt;P&gt;We are not running the search for 365 days but every 30 days and sending the remaining days left within the 365 rolling window.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 17:56:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359337#M162150</guid>
      <dc:creator>jarapally</dc:creator>
      <dc:date>2018-03-19T17:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Search all the login events from a location</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359338#M162151</link>
      <description>&lt;P&gt;Ok so then just change the earliest time you are looking at it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; search *login* earliest=-30d
 | eval unique_date= date_mday +"/" + date_month
 | stats count by unique_date, user
 | stats count by user
 | eval crossed_threshold=if(count&amp;gt;110,"True","False")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Mar 2018 18:09:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359338#M162151</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-19T18:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Search all the login events from a location</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359339#M162152</link>
      <description>&lt;P&gt;But the user is allowed to work for 110 days within any given 365 days. And we run this report every 30 days to send them the remaining days that are left&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 19:42:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359339#M162152</guid>
      <dc:creator>jarapally</dc:creator>
      <dc:date>2018-03-19T19:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search all the login events from a location</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359340#M162153</link>
      <description>&lt;P&gt;Sorry, I think I finally understood what you intend:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  search *login* earliest=-365d
  | eval unique_date= date_mday +"/" + date_month
  | stats count by unique_date, user
  | stats count by user
  | eval remaining_days = 110-count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if that is what you want to send to the users&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 19:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359340#M162153</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-19T19:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Search all the login events from a location</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359341#M162154</link>
      <description>&lt;P&gt;Please let me know if the answer was useful for you. If it was, accept it and upvote. If not, give us more input so we can help you with that&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 17:26:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-all-the-login-events-from-a-location/m-p/359341#M162154</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-21T17:26:22Z</dc:date>
    </item>
  </channel>
</rss>

