<?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: scripted input timestamp extraction in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/scripted-input-timestamp-extraction/m-p/59453#M11716</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You need to configure your &lt;CODE&gt;props.conf&lt;/CODE&gt; file for this. Please see the following extract from the documentation:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#******************************************************************************
# Timestamp extraction configuration
#******************************************************************************

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;

&lt;P&gt;Ref: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.3/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2013 15:40:38 GMT</pubDate>
    <dc:creator>MHibbin</dc:creator>
    <dc:date>2013-06-11T15:40:38Z</dc:date>
    <item>
      <title>scripted input timestamp extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/scripted-input-timestamp-extraction/m-p/59452#M11715</link>
      <description>&lt;P&gt;We have a script that executes every 5 minutes to pull back server stats but it takes about 2-3 minutes to execute so the timestamp of events is different. Is it possible to give all these events that come in during the scripted input execution the timestamp of when the script was executed?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 14:03:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/scripted-input-timestamp-extraction/m-p/59452#M11715</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2013-06-11T14:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: scripted input timestamp extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/scripted-input-timestamp-extraction/m-p/59453#M11716</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You need to configure your &lt;CODE&gt;props.conf&lt;/CODE&gt; file for this. Please see the following extract from the documentation:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#******************************************************************************
# Timestamp extraction configuration
#******************************************************************************

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;

&lt;P&gt;Ref: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.3/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 15:40:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/scripted-input-timestamp-extraction/m-p/59453#M11716</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2013-06-11T15:40:38Z</dc:date>
    </item>
  </channel>
</rss>

