<?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 retain _time in summary index in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400463#M3471</link>
    <description>&lt;P&gt;In Splunk, for everything there is a precedence from conf files to _time&lt;/P&gt;

&lt;P&gt;This is how splunk assign _time to the events when getting data in.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.6/Data/HowSplunkextractstimestamps"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.6/Data/HowSplunkextractstimestamps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;so similarly due to some precedence i'm missing _time in summary index.&lt;/P&gt;

&lt;P&gt;Might be my existing index data unable to recognize timestamp&lt;/P&gt;

&lt;P&gt;@skoelpin  "So if you don't know the answers stay away from giving answers and I can see your experience with answers made."&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2019 10:43:18 GMT</pubDate>
    <dc:creator>AnilPujar</dc:creator>
    <dc:date>2019-04-25T10:43:18Z</dc:date>
    <item>
      <title>how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400448#M3456</link>
      <description>&lt;P&gt;when I try simple below query its taking the current system time instead of _time of original event.&lt;/P&gt;

&lt;P&gt;splunk version: 6.6.3&lt;/P&gt;

&lt;P&gt;index=indexname | collect index=si&lt;/P&gt;

&lt;P&gt;I want the events in the summary index to retain the _time as it is in the primary index. But it's storing the current system time.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 08:09:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400448#M3456</guid>
      <dc:creator>AnilPujar</dc:creator>
      <dc:date>2019-01-16T08:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400449#M3457</link>
      <description>&lt;P&gt;Hi @AnilPujar&lt;/P&gt;

&lt;P&gt;Please check this solution&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/78756/is-it-possible-to-rewrite-the-time-value-for-summary-index-events.html"&gt;https://answers.splunk.com/answers/78756/is-it-possible-to-rewrite-the-time-value-for-summary-index-events.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 08:16:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400449#M3457</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-01-16T08:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400450#M3458</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
You can add _time in your base search before collecting it in a new index&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 09:02:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400450#M3458</guid>
      <dc:creator>nikita_p</dc:creator>
      <dc:date>2019-01-16T09:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400451#M3459</link>
      <description>&lt;P&gt;Well does your events in primary index has timestamp? According to docs, If you use the collect command with a time range of All time and the events do not have timestamps, the current system time is used for the timestamps.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 09:09:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400451#M3459</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-01-16T09:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400452#M3460</link>
      <description>&lt;P&gt;I think you're missing the point of a summary index. In your example, you are pushing raw data to the summary index rather than summarized data. You should have a transformational command prior to your &lt;CODE&gt;collect&lt;/CODE&gt; command. Once the data is transformed, it creates metrics which can be shipped to a summary index. If you use a &lt;CODE&gt;timechart&lt;/CODE&gt; command then _time will be passed to the summary index&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 13:17:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400452#M3460</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2019-01-16T13:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400453#M3461</link>
      <description>&lt;P&gt;This solution is useless if he's sending raw data to a summary index.. &lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 13:19:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400453#M3461</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2019-01-16T13:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400454#M3462</link>
      <description>&lt;P&gt;Can we move this answer as comment to the question, since it is not the answer to the question asked.&lt;/P&gt;

&lt;P&gt;index=indexname | collect index=si&lt;/P&gt;

&lt;P&gt;What is the _time precedence if I run this command. The same _time of index=indexname should retain?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 05:43:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400454#M3462</guid>
      <dc:creator>AnilPujar</dc:creator>
      <dc:date>2019-02-05T05:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400455#M3463</link>
      <description>&lt;P&gt;Try this: &lt;BR /&gt;
index=indexname | eval _time = Timestamp field in event&amp;gt; | collect index=si&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 06:32:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400455#M3463</guid>
      <dc:creator>jvishwak</dc:creator>
      <dc:date>2019-02-05T06:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400456#M3464</link>
      <description>&lt;P&gt;Why would I move this as a comment? From a technical standpoint, you are wasting resources and time shipping raw data to a summary index and getting zero benefit of the acceleration a summary index provides. This answer needs visibility for future Splunkers who may be looking to do the same thing &lt;/P&gt;

&lt;P&gt;To be clear, DO NOT DO THIS&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 15:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400456#M3464</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2019-02-05T15:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400457#M3465</link>
      <description>&lt;P&gt;What is the _time precedence for collect command?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 05:25:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400457#M3465</guid>
      <dc:creator>AnilPujar</dc:creator>
      <dc:date>2019-02-19T05:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400458#M3466</link>
      <description>&lt;P&gt;You're not understanding how a summary index works. You should stay away from this until you get more experience &lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 14:40:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400458#M3466</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2019-02-19T14:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400459#M3467</link>
      <description>&lt;P&gt;@AnilPujar - What is your use case and the collect will give you timestamp of your events in index your are searching on. In case there is no timestamp in your main search only then it takes current system time. You can run in testmode and compare the _time from your main index to the result after collect.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 18:41:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400459#M3467</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-02-19T18:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400460#M3468</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Actually, this is a very good question. The only thing is that is asked wrong ....&lt;/P&gt;

&lt;P&gt;How, anyone like myself, could run collect command from an index to another, and retain the original _time of the older index????&lt;/P&gt;

&lt;P&gt;Does anyone think of that?&lt;/P&gt;

&lt;P&gt;Thank you,&lt;BR /&gt;
Bogdan.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 15:44:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400460#M3468</guid>
      <dc:creator>bogdan_nicolesc</dc:creator>
      <dc:date>2019-04-10T15:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400461#M3469</link>
      <description>&lt;P&gt;Hi Mayur,&lt;/P&gt;

&lt;P&gt;The data was collected using servicenow addon and i'm not seeing any timestamp being captured additionally.&lt;/P&gt;

&lt;P&gt;Only _time mapped with sys_updated_on&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400461#M3469</guid>
      <dc:creator>AnilPujar</dc:creator>
      <dc:date>2020-09-30T00:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400462#M3470</link>
      <description>&lt;P&gt;Thanks Bogdan and also for your time in trying it out.&lt;/P&gt;

&lt;P&gt;Still waiting for answer..&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 09:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400462#M3470</guid>
      <dc:creator>AnilPujar</dc:creator>
      <dc:date>2019-04-25T09:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400463#M3471</link>
      <description>&lt;P&gt;In Splunk, for everything there is a precedence from conf files to _time&lt;/P&gt;

&lt;P&gt;This is how splunk assign _time to the events when getting data in.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.6/Data/HowSplunkextractstimestamps"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.6/Data/HowSplunkextractstimestamps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;so similarly due to some precedence i'm missing _time in summary index.&lt;/P&gt;

&lt;P&gt;Might be my existing index data unable to recognize timestamp&lt;/P&gt;

&lt;P&gt;@skoelpin  "So if you don't know the answers stay away from giving answers and I can see your experience with answers made."&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 10:43:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400463#M3471</guid>
      <dc:creator>AnilPujar</dc:creator>
      <dc:date>2019-04-25T10:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400464#M3472</link>
      <description>&lt;P&gt;I'm not sure how to interpret this.. If you're unsure that your populating search may not be extracting _time correctly then you have much deeper problems than writing new data to a summary index. Your original search is just piping raw data from one index to another, completely subverting the purpose of a summary index.  &lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 11:17:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/400464#M3472</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2019-04-25T11:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain _time in summary index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/572079#M8557</link>
      <description>&lt;P&gt;Looking through all the comments, it is obvious that some don't understand there may be other objectives of moving events from one index to another than creating a plain summary.&lt;/P&gt;&lt;P&gt;There are two objectives that I clearly see here - and there could be more:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You want to create a summary of events so it is easier to search through a subset of data (hence summary index)&lt;/LI&gt;&lt;LI&gt;You want to preserve certain _raw events as is before freezing / deleting old buckets (example configuration audit changes)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have mainly looked into the last item on this list - preserving configuration audit logs for a Cisco ASA beyond the freeze/delete point of 1 year I have set on my index of the original events.&lt;/P&gt;&lt;P&gt;The collect command will just ourput the _raw record to the stash file, it is then useful to get the timestamps correctly added to each.&amp;nbsp; I used this search:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;host=1.2.3.4 message_id=111008&lt;BR /&gt;| eval eventtime=strftime(_time,"%Y-%m-%dT%H:%M:%S")&lt;BR /&gt;| eval _raw=eventtime + ": " + _raw | collect index=config_change&lt;/P&gt;&lt;P&gt;You may add host= and sourcetype= to the collect command to preserve it, but it will then be counted in&amp;nbsp; your license.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards H.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 19:55:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-retain-time-in-summary-index/m-p/572079#M8557</guid>
      <dc:creator>hnorvik</dc:creator>
      <dc:date>2021-10-22T19:55:59Z</dc:date>
    </item>
  </channel>
</rss>

