<?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: Set timestamp to system or executiontime for scripted input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Set-timestamp-to-system-or-executiontime-for-scripted-input/m-p/48596#M9220</link>
    <description>&lt;P&gt;You can tell Splunk to use the current indexing time as timestamp for the event like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DATETIME_CONFIG = CURRENT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/admin/Propsconf&lt;/A&gt; for reference.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2013 10:34:30 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2013-05-29T10:34:30Z</dc:date>
    <item>
      <title>Set timestamp to system or executiontime for scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Set-timestamp-to-system-or-executiontime-for-scripted-input/m-p/48595#M9219</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I use a script which gets a lot of data back, sometimes the string looks like a timestamp and splunk decide to use this string as a time. This results in a strange behaviour that events become a time which is years ago or in the future.&lt;/P&gt;

&lt;P&gt;Is it possible to tell splunk, to use the execution or actual system time for this scripted input?&lt;/P&gt;

&lt;P&gt;One possibility is to create a timestamp in the script, but the output is very long so i would leave unnecessary data.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Robert&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2013 09:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Set-timestamp-to-system-or-executiontime-for-scripted-input/m-p/48595#M9219</guid>
      <dc:creator>RobertRi</dc:creator>
      <dc:date>2013-05-29T09:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set timestamp to system or executiontime for scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Set-timestamp-to-system-or-executiontime-for-scripted-input/m-p/48596#M9220</link>
      <description>&lt;P&gt;You can tell Splunk to use the current indexing time as timestamp for the event like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DATETIME_CONFIG = CURRENT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/admin/Propsconf&lt;/A&gt; for reference.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2013 10:34:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Set-timestamp-to-system-or-executiontime-for-scripted-input/m-p/48596#M9220</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-05-29T10:34:30Z</dc:date>
    </item>
  </channel>
</rss>

