<?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 changes my timestamp in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Collect-changes-my-timestamp/m-p/391044#M113835</link>
    <description>&lt;P&gt;Splunk's &lt;CODE&gt;_time&lt;/CODE&gt; field is very special.  It is always in integer but this is obscured because it carries around this code with it at all times &lt;CODE&gt;| fieldformat _time = strftime(_time, "%c")&lt;/CODE&gt;.  Is your &lt;CODE&gt;_time&lt;/CODE&gt; field an integer or is it human-formatted (it &lt;EM&gt;must&lt;/EM&gt; be the former)?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2019 19:26:30 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-07-17T19:26:30Z</dc:date>
    <item>
      <title>Collect changes my timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Collect-changes-my-timestamp/m-p/391043#M113834</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to have a scheduled search that take data and make some logic on it and at the end put it in a summary index.&lt;BR /&gt;
The problem is that it changes my timestamp no matter what i do.&lt;BR /&gt;
I've tried giving the collect "timeformat" as my time format, tried using eval _time = strptime(), tried both addtime options and nothing works. &lt;/P&gt;

&lt;P&gt;My events in the indexes are either json or csv with a custom source type. The splunk recognize my timestamp as I want but in testmode=true. But when I change it to false the summary index timestamp is the search time or the info_min_time, depends my search syntax.&lt;BR /&gt;
I would say that if i do the same search in the _internal index the timestamp is the original time. As I want in my indexes. &lt;/P&gt;

&lt;P&gt;I looked everywhere and didn't find anything that works.&lt;/P&gt;

&lt;P&gt;Thank for helping&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:19:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Collect-changes-my-timestamp/m-p/391043#M113834</guid>
      <dc:creator>ramarm</dc:creator>
      <dc:date>2020-09-30T01:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Collect changes my timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Collect-changes-my-timestamp/m-p/391044#M113835</link>
      <description>&lt;P&gt;Splunk's &lt;CODE&gt;_time&lt;/CODE&gt; field is very special.  It is always in integer but this is obscured because it carries around this code with it at all times &lt;CODE&gt;| fieldformat _time = strftime(_time, "%c")&lt;/CODE&gt;.  Is your &lt;CODE&gt;_time&lt;/CODE&gt; field an integer or is it human-formatted (it &lt;EM&gt;must&lt;/EM&gt; be the former)?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 19:26:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Collect-changes-my-timestamp/m-p/391044#M113835</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-17T19:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Collect changes my timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Collect-changes-my-timestamp/m-p/391045#M113836</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I tried to look of my field is number or string as  recommend.&lt;BR /&gt;
I used &lt;CODE&gt;eval type=typeof(_time)&lt;/CODE&gt; and in both indexes, mine and the _internal for example it was number.&lt;BR /&gt;
Any other suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 08:12:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Collect-changes-my-timestamp/m-p/391045#M113836</guid>
      <dc:creator>ramarm</dc:creator>
      <dc:date>2019-07-18T08:12:16Z</dc:date>
    </item>
  </channel>
</rss>

