<?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 Change timestamp and making it effective in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Change-timestamp-and-making-it-effective/m-p/48289#M9134</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
I'm trying to redefine the timestamp for my resource that contains data as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DBInit-27,21/02/2013 9:28:26,22/02/2013 16:30:16,0,R_1812,0,Netscape3.0,0,0,3,172.21.0.132,172.21.0.132,ohm-web-7.9.0-SNAPSHOT (6f5d6 - 2013-02-26 13:58:14),20130301_110723,1/03/2013 11:12:38,1/03/2013 11:12:45,7,True,DAVIDJ-3500,x86,4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By default, the timestamp that is extracted is the first one that it encounters, being &lt;CODE&gt;21/02/2013 9:28:26&lt;/CODE&gt; in this case. However, I want to make the timestamp to be &lt;CODE&gt;1/03/2013 11:12:38&lt;/CODE&gt; (the one before the last timestamp). For this, I added the following in &lt;CODE&gt;C:\Program Files\Splunk\etc\apps\search\default\props.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[source::C:\\Temp\\testResultLog.csv]&lt;BR /&gt;
TIME_PREFIX = \d{8}_\d{6},&lt;BR /&gt;
TIME_FORMAT  = %d/%m/%y %H:%M:%S&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The regex matches &lt;CODE&gt;20130301_110723,&lt;/CODE&gt; expecting to define the timestamp as I desire, as is explained in the manual.&lt;BR /&gt;
Unfortunately, this has no effect; I tried to stop and start splunk; did a &lt;CODE&gt;source="C:\\Temp\\testResultLog.csv" | extract reload=T&lt;/CODE&gt;; all to no effect ..&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2013 13:59:19 GMT</pubDate>
    <dc:creator>davidjehoul</dc:creator>
    <dc:date>2013-03-01T13:59:19Z</dc:date>
    <item>
      <title>Change timestamp and making it effective</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-timestamp-and-making-it-effective/m-p/48289#M9134</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I'm trying to redefine the timestamp for my resource that contains data as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DBInit-27,21/02/2013 9:28:26,22/02/2013 16:30:16,0,R_1812,0,Netscape3.0,0,0,3,172.21.0.132,172.21.0.132,ohm-web-7.9.0-SNAPSHOT (6f5d6 - 2013-02-26 13:58:14),20130301_110723,1/03/2013 11:12:38,1/03/2013 11:12:45,7,True,DAVIDJ-3500,x86,4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By default, the timestamp that is extracted is the first one that it encounters, being &lt;CODE&gt;21/02/2013 9:28:26&lt;/CODE&gt; in this case. However, I want to make the timestamp to be &lt;CODE&gt;1/03/2013 11:12:38&lt;/CODE&gt; (the one before the last timestamp). For this, I added the following in &lt;CODE&gt;C:\Program Files\Splunk\etc\apps\search\default\props.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[source::C:\\Temp\\testResultLog.csv]&lt;BR /&gt;
TIME_PREFIX = \d{8}_\d{6},&lt;BR /&gt;
TIME_FORMAT  = %d/%m/%y %H:%M:%S&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The regex matches &lt;CODE&gt;20130301_110723,&lt;/CODE&gt; expecting to define the timestamp as I desire, as is explained in the manual.&lt;BR /&gt;
Unfortunately, this has no effect; I tried to stop and start splunk; did a &lt;CODE&gt;source="C:\\Temp\\testResultLog.csv" | extract reload=T&lt;/CODE&gt;; all to no effect ..&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 13:59:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-timestamp-and-making-it-effective/m-p/48289#M9134</guid>
      <dc:creator>davidjehoul</dc:creator>
      <dc:date>2013-03-01T13:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change timestamp and making it effective</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-timestamp-and-making-it-effective/m-p/48290#M9135</link>
      <description>&lt;P&gt;Timestamp extraction takes place at index-time, and as such changes to this will not apply to data that has already been indexed. You need to reindex your data.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 14:11:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-timestamp-and-making-it-effective/m-p/48290#M9135</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-03-01T14:11:24Z</dc:date>
    </item>
  </channel>
</rss>

