<?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 get an accurate timechart count of matching events if an extract is off by a second in a given polling interval? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-accurate-timechart-count-of-matching-events-if-an/m-p/244005#M72624</link>
    <description>&lt;P&gt;Thank you sir! Using bin followed by a dedup definitely fixed the overlapping count! &lt;/P&gt;

&lt;P&gt;To answer your question on the ingest method, these extracts are captured as standard output from a PowerShell script that is executed by the universal forwarder, and I suspect that performance issues on the SDK calls to the data source are to blame for the slight deviations in the interval duration.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2015 13:26:14 GMT</pubDate>
    <dc:creator>det0n8r</dc:creator>
    <dc:date>2015-09-29T13:26:14Z</dc:date>
    <item>
      <title>How to get an accurate timechart count of matching events if an extract is off by a second in a given polling interval?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-accurate-timechart-count-of-matching-events-if-an/m-p/244003#M72622</link>
      <description>&lt;P&gt;I'm struggling with counting session table exports that dump active sessions every five minutes. Basically I keep running into a problem where the count overlaps with a previous export every few intervals. &lt;/P&gt;

&lt;P&gt;The data looks something like this:&lt;/P&gt;

&lt;P&gt;Time="3:00:00.000 PM" User="user 1"&lt;BR /&gt;
Time="3:00:00.000 PM" User="user 2"&lt;BR /&gt;
Time="3:00:00.000 PM" User="user 3"&lt;BR /&gt;
Time="3:05:00.000 PM" User="user 1"&lt;BR /&gt;
Time="3:05:00.000 PM" User="user 2"&lt;BR /&gt;
Time="3:10:00.000 PM" User="user 1"&lt;/P&gt;

&lt;P&gt;Here's a sample search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart span=5m count(_raw) as ActiveSessions
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which results in the attached visualization screenshot, where the data overlaps at certain points and incorrectly counts events from the previous polling interval.&lt;/P&gt;

&lt;P&gt;I'm guessing that this is because the exports aren't running/completing &lt;EM&gt;&lt;STRONG&gt;exactly&lt;/STRONG&gt;&lt;/EM&gt; every five minutes, and so the span is intermittently counting two sets of exports. &lt;/P&gt;

&lt;P&gt;For example, how do you do a proper count if an extract is off by a second in a given polling interval; like this:&lt;/P&gt;

&lt;P&gt;Time="3:00:00.000 PM" User="user 1"&lt;BR /&gt;
Time="3:00:00.000 PM" User="user 2"&lt;BR /&gt;
Time="3:00:00.000 PM" User="user 3"&lt;BR /&gt;
Time="3:05:&lt;STRONG&gt;01&lt;/STRONG&gt;.000 PM" User="user 1"&lt;BR /&gt;
Time="3:05:&lt;STRONG&gt;01&lt;/STRONG&gt;.000 PM" User="user 2"&lt;BR /&gt;
Time="3:10:00.000 PM" User="user 1"&lt;/P&gt;

&lt;P&gt;Is there another way to get at this metric? I started looking into &lt;STRONG&gt;concurrency&lt;/STRONG&gt;, but didn't have much luck.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 20:14:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-accurate-timechart-count-of-matching-events-if-an/m-p/244003#M72622</guid>
      <dc:creator>det0n8r</dc:creator>
      <dc:date>2015-09-28T20:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an accurate timechart count of matching events if an extract is off by a second in a given polling interval?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-accurate-timechart-count-of-matching-events-if-an/m-p/244004#M72623</link>
      <description>&lt;P&gt;Normalize the times using "bin", dedup, then chart it.&lt;BR /&gt;
i.e.&lt;BR /&gt;
&lt;CODE&gt;| bin _time span=5m | dedup _time user | timechart span=5m count as ActiveSessions&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I'm not sure how you're getting the data into Splunk (DB Connect 2?), but the other option is to fix it on the ingest side. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 20:46:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-accurate-timechart-count-of-matching-events-if-an/m-p/244004#M72623</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2015-09-28T20:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an accurate timechart count of matching events if an extract is off by a second in a given polling interval?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-accurate-timechart-count-of-matching-events-if-an/m-p/244005#M72624</link>
      <description>&lt;P&gt;Thank you sir! Using bin followed by a dedup definitely fixed the overlapping count! &lt;/P&gt;

&lt;P&gt;To answer your question on the ingest method, these extracts are captured as standard output from a PowerShell script that is executed by the universal forwarder, and I suspect that performance issues on the SDK calls to the data source are to blame for the slight deviations in the interval duration.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 13:26:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-accurate-timechart-count-of-matching-events-if-an/m-p/244005#M72624</guid>
      <dc:creator>det0n8r</dc:creator>
      <dc:date>2015-09-29T13:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an accurate timechart count of matching events if an extract is off by a second in a given polling interval?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-accurate-timechart-count-of-matching-events-if-an/m-p/244006#M72625</link>
      <description>&lt;P&gt;Would you mind posting that as a new question please? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 13:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-accurate-timechart-count-of-matching-events-if-an/m-p/244006#M72625</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2015-09-29T13:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an accurate timechart count of matching events if an extract is off by a second in a given polling interval?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-accurate-timechart-count-of-matching-events-if-an/m-p/244007#M72626</link>
      <description>&lt;P&gt;I've posted my new question here; &lt;A href="http://answers.splunk.com/answers/312862/how-to-normalize-event-counts-of-disparate-data-ex.html"&gt;http://answers.splunk.com/answers/312862/how-to-normalize-event-counts-of-disparate-data-ex.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 14:41:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-accurate-timechart-count-of-matching-events-if-an/m-p/244007#M72626</guid>
      <dc:creator>det0n8r</dc:creator>
      <dc:date>2015-09-29T14:41:39Z</dc:date>
    </item>
  </channel>
</rss>

