<?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: Collect bins time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Collect-bins-time/m-p/368582#M108648</link>
    <description>&lt;P&gt;Looks like I can't edit the question but only add new information via comment.&lt;/P&gt;

&lt;P&gt;Turns out when I had &lt;CODE&gt;search … | table … | collect …&lt;/CODE&gt; the _time gets collapsed to hourly increments (with rollover to subsequent seconds as @woodcock pointed out from &lt;A href="https://answers.splunk.com/answers/303/whats-max-events-i-can-have-timestamped-with-a-particular-second-millisecond.html"&gt;https://answers.splunk.com/answers/303/whats-max-events-i-can-have-timestamped-with-a-particular-second-millisecond.html&lt;/A&gt;). but &lt;CODE&gt;search … | fields …&amp;nbsp;| collect …&lt;/CODE&gt; keeps _time with millisecond accuracy in the index.&lt;/P&gt;

&lt;P&gt;Unfortunately table is only one requirement; stats is also desired. &lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2017 20:45:26 GMT</pubDate>
    <dc:creator>larryp</dc:creator>
    <dc:date>2017-06-22T20:45:26Z</dc:date>
    <item>
      <title>Collect bins time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Collect-bins-time/m-p/368577#M108643</link>
      <description>&lt;P&gt;OK, this is driving me crazy. I have a normal time in _time (displayed as yyyy-mm-dd HH:MM:SS). I collect it into an index without any bin. I search on the index, and the times are all yyyy-mm-dd HH:00:00 or yyyy-mm-dd HH:00:01. In addition, the number of events with the time yyyy-mm-dd HH:00:00 are various multiples of 100,000, as if there's a limitation being reached, &lt;EM&gt;but the multiple isn't the same&lt;/EM&gt;.&lt;/P&gt;

&lt;P&gt;I can copy the _time variable to another one, and it will be in the index exactly as I expect (displayed as epoch time with microsecond precision) from the index. But that AFAIK can't be used in, e.g., timechart. (And as this index is for users to run statistics on, copying it &lt;EM&gt;back&lt;/EM&gt; to _time isn't an option.)&lt;/P&gt;

&lt;P&gt;As I was researching this I came across a comment about sub-second times possibly creating a need for too much memory, but (a) I can't find it again, and (b) I would have thought that one would lose subsecond precision, not (in my case) hourly.&lt;/P&gt;

&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 01:58:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Collect-bins-time/m-p/368577#M108643</guid>
      <dc:creator>larryp</dc:creator>
      <dc:date>2017-06-22T01:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Collect bins time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Collect-bins-time/m-p/368578#M108644</link>
      <description>&lt;P&gt;Here's the apparent answer and workarounds...&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/218702/why-are-collected-events-in-a-summary-index-losing.html"&gt;https://answers.splunk.com/answers/218702/why-are-collected-events-in-a-summary-index-losing.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you do need the millisecond-level accuracy for timecharting, then you can always recalculate &lt;CODE&gt;_time&lt;/CODE&gt; before the &lt;CODE&gt;timechart&lt;/CODE&gt; command, either inline in the search or in &lt;CODE&gt;props.conf&lt;/CODE&gt; the way @krdo suggests in the comments on that question.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:23:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Collect-bins-time/m-p/368578#M108644</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-06-22T15:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Collect bins time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Collect-bins-time/m-p/368579#M108645</link>
      <description>&lt;P&gt;That's interesting, but apparently not the cause of my problem - I'm losing minute and second as well as millisecond granularity (where seconds are either 0 or 1). The work-around would only work for milliseconds.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:38:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Collect-bins-time/m-p/368579#M108645</guid>
      <dc:creator>larryp</dc:creator>
      <dc:date>2017-06-22T15:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Collect bins time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Collect-bins-time/m-p/368580#M108646</link>
      <description>&lt;P&gt;There is a limit on the number of events that can exist at the same second.  There is an error that is generated when this is hit.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/303/whats-max-events-i-can-have-timestamped-with-a-particular-second-millisecond.html"&gt;https://answers.splunk.com/answers/303/whats-max-events-i-can-have-timestamped-with-a-particular-second-millisecond.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 20:06:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Collect-bins-time/m-p/368580#M108646</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-22T20:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Collect bins time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Collect-bins-time/m-p/368581#M108647</link>
      <description>&lt;P&gt;That's also interesting, but in my case why did Splunk ‘bin’ events into &lt;EM&gt;hourly&lt;/EM&gt; buckets, where 100000 &lt;EM&gt;or&lt;/EM&gt; 200000 events got put in second 0 (HH:00:00) and the rest (&amp;gt;100000) got put in second 1 (HH:00:01)? In fact, I don't &lt;EM&gt;want&lt;/EM&gt; _time reduced to one arbitrary second out of 3600; I'd rather keep the events in the 3600 seconds for each hour they occur in.&lt;/P&gt;

&lt;P&gt;I'm going to update the description of the problem with some clarifying information.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 20:39:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Collect-bins-time/m-p/368581#M108647</guid>
      <dc:creator>larryp</dc:creator>
      <dc:date>2017-06-22T20:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Collect bins time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Collect-bins-time/m-p/368582#M108648</link>
      <description>&lt;P&gt;Looks like I can't edit the question but only add new information via comment.&lt;/P&gt;

&lt;P&gt;Turns out when I had &lt;CODE&gt;search … | table … | collect …&lt;/CODE&gt; the _time gets collapsed to hourly increments (with rollover to subsequent seconds as @woodcock pointed out from &lt;A href="https://answers.splunk.com/answers/303/whats-max-events-i-can-have-timestamped-with-a-particular-second-millisecond.html"&gt;https://answers.splunk.com/answers/303/whats-max-events-i-can-have-timestamped-with-a-particular-second-millisecond.html&lt;/A&gt;). but &lt;CODE&gt;search … | fields …&amp;nbsp;| collect …&lt;/CODE&gt; keeps _time with millisecond accuracy in the index.&lt;/P&gt;

&lt;P&gt;Unfortunately table is only one requirement; stats is also desired. &lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 20:45:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Collect-bins-time/m-p/368582#M108648</guid>
      <dc:creator>larryp</dc:creator>
      <dc:date>2017-06-22T20:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Collect bins time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Collect-bins-time/m-p/368583#M108649</link>
      <description>&lt;P&gt;OK, I'm accepting this answer. It looks like the secondary effect is created by the ‘earliest’ unit, not the value or the span, nor any bin value (e.g, 5m).&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 01:28:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Collect-bins-time/m-p/368583#M108649</guid>
      <dc:creator>larryp</dc:creator>
      <dc:date>2017-06-23T01:28:09Z</dc:date>
    </item>
  </channel>
</rss>

