<?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: getting timestamps in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46853#M8859</link>
    <description>&lt;P&gt;see update above. /k&lt;/P&gt;</description>
    <pubDate>Thu, 10 May 2012 08:58:12 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2012-05-10T08:58:12Z</dc:date>
    <item>
      <title>getting timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46843#M8849</link>
      <description>&lt;P&gt;I would like to index my logs,however,I'm new to SPLUNK and I do not know how to break my logs up using timestamps. My data looks something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;hello1:/dev/console:Mon Nov  6 13:21:49 2010
hello2:/dev/console:Mon Nov  6 13:22:10 2010
hello3:/dev/console:Mon Nov  6 13:22:33 2010
hello4:/dev/console:Mon Nov  6 13:26:14 2010
hello5:/dev/console:Mon Nov  6 13:26:27 2010
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can someone assist me with a prop.conf to break these into different events with the appropiate timestamps? Each line is a different event.&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2012 07:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46843#M8849</guid>
      <dc:creator>JeffTanYH</dc:creator>
      <dc:date>2012-05-09T07:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: getting timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46844#M8850</link>
      <description>&lt;P&gt;Normally splunk should break automatically the events and recognize the timestamps.It did on my splunk with your data...&lt;/P&gt;

&lt;P&gt;But if you want to force it you could set the following in your props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_data_sourcetype]
SHOULD_LINEMERGE=false
TIME_FORMAT=%b %d %H:%M:%S %Y
TIME_PREFIX=\:\w+\s+
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 May 2012 08:02:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46844#M8850</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2012-05-09T08:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: getting timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46845#M8851</link>
      <description>&lt;P&gt;Hey,there seems to be a problem.&lt;BR /&gt;
I copied the props.conf that you come up with,however,the timestamp still shows the date in which I uploaded the logs,instead of the dates that are stated in each event.&lt;/P&gt;

&lt;P&gt;I had to remove the TIME_PREFIX line before the time could match,but the date still remained as the date in which I uploaded my logs into SPLUNK.&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2012 09:13:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46845#M8851</guid>
      <dc:creator>JeffTanYH</dc:creator>
      <dc:date>2012-05-09T09:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: getting timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46846#M8852</link>
      <description>&lt;P&gt;And one more thing,what does this mean?:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Could not use strptime to parse timestamp from "(null)"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Could not use regex to parse timestamp from "(null)"&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 09 May 2012 09:17:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46846#M8852</guid>
      <dc:creator>JeffTanYH</dc:creator>
      <dc:date>2012-05-09T09:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: getting timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46847#M8853</link>
      <description>&lt;P&gt;the conf is based on the sample data you pasted then if it doesnot work it means the data is different.&lt;/P&gt;

&lt;P&gt;You need to adjust it(or paste a better extract of your raw data) and this will only apply to new data.&lt;/P&gt;

&lt;P&gt;Have you tried without any configuration or with data preview?&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2012 10:14:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46847#M8853</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2012-05-09T10:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: getting timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46848#M8854</link>
      <description>&lt;P&gt;TIME_PREFIX is wrong. Try;  &lt;/P&gt;

&lt;P&gt;TIME_PREFIX = /dev/console:&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2012 10:51:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46848#M8854</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-05-09T10:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: getting timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46849#M8855</link>
      <description>&lt;P&gt;It doesnt seem to be working. When I used Mario's TIME_FORMAT and kristian's TIME_PREFIX. The time in the timestamp is right,however,the date is still incorrect. It looks something like this:&lt;/P&gt;

&lt;P&gt;1  04/05/2012 13:21:49.000 hello1:/dev/console:Mon Nov  6 13:21:49 2006 &lt;/P&gt;

&lt;P&gt;2  04/05/2012 13:22:10.000 hell02:/dev/console:Mon Nov  6 13:22:10 2006 &lt;/P&gt;

&lt;P&gt;3  04/05/2012 13:22:33.000 hello3:/dev/console:Mon Nov  6 13:22:33 2006 &lt;/P&gt;

&lt;P&gt;4  04/05/2012 13:26:14.000 hello4:/dev/console:Mon Nov  6 13:26:14 2006 &lt;/P&gt;

&lt;P&gt;5  04/05/2012 13:26:27.000 hello5:/dev/console:Mon Nov  6 13:26:27 2006&lt;/P&gt;

&lt;P&gt;As you can see,the time is correct,however,the date doesnt in the timestamp doesnt seem to match those in the event.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:47:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46849#M8855</guid>
      <dc:creator>JeffTanYH</dc:creator>
      <dc:date>2020-09-28T11:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: getting timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46850#M8856</link>
      <description>&lt;P&gt;Is there any way in which I can tell SPLUNK that the logs I am uploading is for the year of 2011 instead of the current year (2012)? Whenever I upload any logs into SPLUNK,it automatically timestamps my logs,however,it is timestamps it for the year of 2012 (instead of 2011). Some of the timestamps shows the event occuring in June or July 2012,which hasn't even past! Please help me!&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2012 07:11:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46850#M8856</guid>
      <dc:creator>JeffTanYH</dc:creator>
      <dc:date>2012-05-10T07:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: getting timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46851#M8857</link>
      <description>&lt;P&gt;Splunk will not accept timestamps that are too far off from the actual date/time (i.e. the time on the indexer).&lt;/P&gt;

&lt;P&gt;There are a few &lt;CODE&gt;props.conf&lt;/CODE&gt; settings that can be adjusted to allow for indexing of old (or future) events, called &lt;CODE&gt;MAX_DAYS_HENCE&lt;/CODE&gt; and &lt;CODE&gt;MAX_DAYS_AGO&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.1/admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.1/admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE:&lt;/P&gt;

&lt;P&gt;Sorry, but I interpreted the log as having timestamps with years in them.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;hello5:/dev/console:Mon Nov 6 13:26:27 2006
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As for adding a 'false' year to the events, I have not heard of how to that could be achieved.&lt;BR /&gt;
This section of the docs might give you further guidance;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/HowSplunkextractstimestamps"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/HowSplunkextractstimestamps&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2012 07:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46851#M8857</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-05-10T07:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: getting timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46852#M8858</link>
      <description>&lt;P&gt;My logs do not state the year that the logs were produced,it only states the day and the month (i.e Wed Mar 4) that it was created. I presume SPLUNK automatically "thinks" these logs were created this year,but it is actually created in 2011. Is there any way in which I can tell SPLUNK that these logs were create in 2011,instead of letting it presumably take it that they were created this year?&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2012 08:28:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46852#M8858</guid>
      <dc:creator>JeffTanYH</dc:creator>
      <dc:date>2012-05-10T08:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: getting timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46853#M8859</link>
      <description>&lt;P&gt;see update above. /k&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2012 08:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/getting-timestamps/m-p/46853#M8859</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-05-10T08:58:12Z</dc:date>
    </item>
  </channel>
</rss>

