<?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: bad _time in summary index or collect command in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/bad-time-in-summary-index-or-collect-command/m-p/39386#M355</link>
    <description>&lt;P&gt;if i do that i get _time empty when i do my search, and when i use collect on it and search the result, i get the same thing, _time has the time of the collect.&lt;BR /&gt;
why is the field _time not getting the value in time? &lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2011 15:37:46 GMT</pubDate>
    <dc:creator>splunkj900</dc:creator>
    <dc:date>2011-12-22T15:37:46Z</dc:date>
    <item>
      <title>bad _time in summary index or collect command</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/bad-time-in-summary-index-or-collect-command/m-p/39384#M353</link>
      <description>&lt;P&gt;hey&lt;BR /&gt;
i have a data source of csv type, generated from a script that runs every 1 minute.&lt;BR /&gt;
the data has "time" field, which is in dd/mm/yyyy hh:mi format, and everything works great.&lt;BR /&gt;
when i create a summmary index that runs every 5 minutes, using the web interface,  or use a collect command to do it manually one time, i have the following problem :&lt;/P&gt;

&lt;P&gt;the time fields that splunk shows the data according to is _time which gets the time of the summary/collect runtime, and not the time of the data under it.&lt;/P&gt;

&lt;P&gt;for example &lt;/P&gt;

&lt;P&gt;say my data is &lt;/P&gt;

&lt;P&gt;time  country counter&lt;BR /&gt;
20/12/2011 15:50 canada 50&lt;BR /&gt;
20/12/2011 15:51 canada 60&lt;BR /&gt;
20/12/2011 15:52 canada 60&lt;BR /&gt;
20/12/2011 15:50 spain 11&lt;BR /&gt;
20/12/2011 15:51 spain 11&lt;BR /&gt;
20/12/2011 15:52 spain 11&lt;/P&gt;

&lt;P&gt;i would like to aggregate the data by time only so i would have&lt;/P&gt;

&lt;P&gt;time counter&lt;BR /&gt;
20/12/2011 15:50 61&lt;BR /&gt;
20/12/2011 15:51 71&lt;BR /&gt;
20/12/2011 15:52 71&lt;/P&gt;

&lt;P&gt;by doing &lt;BR /&gt;
index=x source=y | stats sum(counter) by time&lt;/P&gt;

&lt;P&gt;when i do this search in the web interface everything is ok, but when i schedule this to be a summary index or do pipe it to a collect command i get this :&lt;/P&gt;

&lt;P&gt;_time time counter&lt;BR /&gt;
12/22/11 3:55:00.00 PM  20/12/2011 15:50 61&lt;BR /&gt;
12/22/11 3:55:00.00 PM  20/12/2011 15:51 61&lt;BR /&gt;
12/22/11 3:55:00.00 PM  20/12/2011 15:52 61&lt;/P&gt;

&lt;P&gt;and the data is shown according to the _time field.&lt;BR /&gt;
i've tried all kinds of tricks like setting the _time with eval, doing addtime=f in the collect, and nothing works.&lt;/P&gt;

&lt;P&gt;splunk version is 4.2.4&lt;BR /&gt;
thanks&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2011 14:00:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/bad-time-in-summary-index-or-collect-command/m-p/39384#M353</guid>
      <dc:creator>splunkj900</dc:creator>
      <dc:date>2011-12-22T14:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: bad _time in summary index or collect command</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/bad-time-in-summary-index-or-collect-command/m-p/39385#M354</link>
      <description>&lt;P&gt;You could try to write also the _time field into SI.&lt;/P&gt;

&lt;P&gt;...  | stats sum(counter) by time |  ...  | table _time field1 field2 ... fieldn&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2011 14:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/bad-time-in-summary-index-or-collect-command/m-p/39385#M354</guid>
      <dc:creator>imrago</dc:creator>
      <dc:date>2011-12-22T14:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: bad _time in summary index or collect command</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/bad-time-in-summary-index-or-collect-command/m-p/39386#M355</link>
      <description>&lt;P&gt;if i do that i get _time empty when i do my search, and when i use collect on it and search the result, i get the same thing, _time has the time of the collect.&lt;BR /&gt;
why is the field _time not getting the value in time? &lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2011 15:37:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/bad-time-in-summary-index-or-collect-command/m-p/39386#M355</guid>
      <dc:creator>splunkj900</dc:creator>
      <dc:date>2011-12-22T15:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: bad _time in summary index or collect command</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/bad-time-in-summary-index-or-collect-command/m-p/39387#M356</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=x source=y | stats sum(counter) by time | rename time as _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:15:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/bad-time-in-summary-index-or-collect-command/m-p/39387#M356</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-06-22T15:15:37Z</dc:date>
    </item>
  </channel>
</rss>

