<?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 can we set the index time to be the event time? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-we-set-the-index-time-to-be-the-event-time/m-p/380154#M68659</link>
    <description>&lt;P&gt;Did you ever get resolution to this?&lt;/P&gt;

&lt;P&gt;If so it would be great if you could provide the info.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2020 20:09:02 GMT</pubDate>
    <dc:creator>DRotondo</dc:creator>
    <dc:date>2020-01-22T20:09:02Z</dc:date>
    <item>
      <title>How can we set the index time to be the event time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-we-set-the-index-time-to-be-the-event-time/m-p/380149#M68654</link>
      <description>&lt;P&gt;We would like to set the index time to be the event time (at index time). How can we do it?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 18:18:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-we-set-the-index-time-to-be-the-event-time/m-p/380149#M68654</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-07-30T18:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can we set the index time to be the event time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-we-set-the-index-time-to-be-the-event-time/m-p/380150#M68655</link>
      <description>&lt;P&gt;HI ddrillic,&lt;/P&gt;

&lt;P&gt;You can do this by adding this to props.conf on indexers.&lt;BR /&gt;
    &lt;CODE&gt;[mysourcetype]&lt;BR /&gt;
    DATETIME_CONFIG = CURRENT&lt;BR /&gt;
    &lt;/CODE&gt;&lt;BR /&gt;
Let me know if this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 18:28:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-we-set-the-index-time-to-be-the-event-time/m-p/380150#M68655</guid>
      <dc:creator>pruthvikrishnap</dc:creator>
      <dc:date>2018-07-30T18:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can we set the index time to be the event time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-we-set-the-index-time-to-be-the-event-time/m-p/380151#M68656</link>
      <description>&lt;P&gt;If you meant setting the time stamp for an event based on the current system time(the time it is being indexed). You can use DATETIME_CONFIG = CURRENT in props.conf for the sourcetype&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 18:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-we-set-the-index-time-to-be-the-event-time/m-p/380151#M68656</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2018-07-30T18:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can we set the index time to be the event time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-we-set-the-index-time-to-be-the-event-time/m-p/380152#M68657</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I did not realize that I am posting the same answer until I refreshed the browser. But anyway,&lt;/P&gt;

&lt;P&gt;Set &lt;CODE&gt;DATETIME_CONFIG = CURRENT&lt;/CODE&gt; to assign the current system time to each event as it's indexed.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DATETIME_CONFIG = &amp;lt;filename relative to $SPLUNK_HOME&amp;gt;
* Specifies which file configures the timestamp extractor, which identifies
  timestamps from the event text.
* This configuration may also be set to "NONE" to prevent the timestamp
  extractor from running or "CURRENT" to assign the current system time to
  each event.
  * "CURRENT" will set the time of the event to the time that the event was
    merged from lines, or worded differently, the time it passed through the
    aggregator processor.
  * "NONE" will leave the event time set to whatever time was selected by
    the input layer
    * For data sent by splunk forwarders over the splunk protocol, the input
      layer will be the time that was selected on the forwarder by its input
      behavior (as below).
    * For file-based inputs (monitor, batch) the time chosen will be the
      modification timestamp on the file being read.
    * For other inputs, the time chosen will be the current system time when
      the event is read from the pipe/socket/etc.
  * Both "CURRENT" and "NONE" explicitly disable the per-text timestamp
    identification, so the default event boundary detection
    (BREAK_ONLY_BEFORE_DATE = true) is likely to not work as desired.  When
    using these settings, use SHOULD_LINEMERGE and/or the BREAK_ONLY_* ,
    MUST_BREAK_* settings to control event merging.
* Defaults to /etc/datetime.xml (for example, $SPLUNK_HOME/etc/datetime.xml).
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Jul 2018 18:36:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-we-set-the-index-time-to-be-the-event-time/m-p/380152#M68657</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-07-30T18:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can we set the index time to be the event time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-we-set-the-index-time-to-be-the-event-time/m-p/380153#M68658</link>
      <description>&lt;P&gt;&lt;CODE&gt;DATETIME_CONFIG = CURRENT&lt;/CODE&gt; appears to read that the time it hits the forwarder is the time it will appear in the seach/index window.&lt;/P&gt;

&lt;P&gt;I need to use the actual time of the event that is inside the event as the time, how do i configure this?&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 21:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-we-set-the-index-time-to-be-the-event-time/m-p/380153#M68658</guid>
      <dc:creator>ajhstn</dc:creator>
      <dc:date>2018-09-02T21:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can we set the index time to be the event time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-we-set-the-index-time-to-be-the-event-time/m-p/380154#M68659</link>
      <description>&lt;P&gt;Did you ever get resolution to this?&lt;/P&gt;

&lt;P&gt;If so it would be great if you could provide the info.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 20:09:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-we-set-the-index-time-to-be-the-event-time/m-p/380154#M68659</guid>
      <dc:creator>DRotondo</dc:creator>
      <dc:date>2020-01-22T20:09:02Z</dc:date>
    </item>
  </channel>
</rss>

