<?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 configure a Haversine scheduled report so that a user will not appear multiple times each time the report is run? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-to-configure-a-Haversine-scheduled-report-so-that-a-user/m-p/238268#M4810</link>
    <description>&lt;P&gt;That's it!  I completely overlooked the eventstats command and it's obvious now.  Thanks! &lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2017 20:02:16 GMT</pubDate>
    <dc:creator>afarmer</dc:creator>
    <dc:date>2017-01-13T20:02:16Z</dc:date>
    <item>
      <title>How to configure a Haversine scheduled report so that a user will not appear multiple times each time the report is run?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-configure-a-Haversine-scheduled-report-so-that-a-user/m-p/238265#M4807</link>
      <description>&lt;P&gt;I use the haversine formula to search for users who have logged into resources within a short period of time in the last 24 hours.  I have a scheduled report set to run every hour and it looks back at the past 24 hours across our authentication logs.  The report works perfectly, but here is the issue.&lt;/P&gt;

&lt;P&gt;Let's say my scheduled report will run at 9:00AM.&lt;BR /&gt;
A particular username is shown as logging in from Atlanta, Georgia, and logging in from Paris, France, within a 5 minute time frame.&lt;BR /&gt;
My scheduled report runs every hour, so this user will appear as logging in from both cities.&lt;/P&gt;

&lt;P&gt;However, since my report runs every hour, this user will continue to appear each hour until the 24 hour time frame has passed.  As you can tell, if I set up an alert, I'll receive many emails each hour.&lt;/P&gt;

&lt;P&gt;What is the best way to configure the report/alert so that this user will only appear once and not every time the report runs?  The alert settings don't seem to have an affect.  &lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 14:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-configure-a-Haversine-scheduled-report-so-that-a-user/m-p/238265#M4807</guid>
      <dc:creator>afarmer</dc:creator>
      <dc:date>2017-01-13T14:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure a Haversine scheduled report so that a user will not appear multiple times each time the report is run?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-configure-a-Haversine-scheduled-report-so-that-a-user/m-p/238266#M4808</link>
      <description>&lt;P&gt;What's the current query/logic that you're using? Are you checking if a user has logged from multiple cities/resources with a specified interval?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 17:25:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-configure-a-Haversine-scheduled-report-so-that-a-user/m-p/238266#M4808</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-13T17:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure a Haversine scheduled report so that a user will not appear multiple times each time the report is run?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-configure-a-Haversine-scheduled-report-so-that-a-user/m-p/238267#M4809</link>
      <description>&lt;P&gt;Just add this to the end of your search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eventstats latest(_time) AS mostRecentTime BY user
| where mostRecentTime &amp;gt;= (now() - 3600)
| fields - mostRecentTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will keep only those groups of events where at least one of them happened in the last hour.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 17:59:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-configure-a-Haversine-scheduled-report-so-that-a-user/m-p/238267#M4809</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-01-13T17:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure a Haversine scheduled report so that a user will not appear multiple times each time the report is run?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-configure-a-Haversine-scheduled-report-so-that-a-user/m-p/238268#M4810</link>
      <description>&lt;P&gt;That's it!  I completely overlooked the eventstats command and it's obvious now.  Thanks! &lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 20:02:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-configure-a-Haversine-scheduled-report-so-that-a-user/m-p/238268#M4810</guid>
      <dc:creator>afarmer</dc:creator>
      <dc:date>2017-01-13T20:02:16Z</dc:date>
    </item>
  </channel>
</rss>

