<?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: Problems with timestamp detection with log2timeline output in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Problems-with-timestamp-detection-with-log2timeline-output/m-p/171166#M34552</link>
    <description>&lt;P&gt;It looks like DATETIME_CONFIG could be used to mess with what gets used in the case when Splunk doesn't recognize a date. . It appears to point to a datetime.xml file which is used to recognize your timestamp. Perhaps if you're XML savvy, you could make mods there. I've not played with this before though, so can't recommend anything with it. As with any edits, make a backup copy first!&lt;/P&gt;</description>
    <pubDate>Tue, 20 May 2014 12:42:39 GMT</pubDate>
    <dc:creator>jeremiahc4</dc:creator>
    <dc:date>2014-05-20T12:42:39Z</dc:date>
    <item>
      <title>Problems with timestamp detection with log2timeline output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problems-with-timestamp-detection-with-log2timeline-output/m-p/171163#M34549</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I'm trying to import a log2timeline output (csv) into splunk, but timestamp detection fails, when I try to define a new sourcetype.&lt;/P&gt;

&lt;P&gt;The time information is located at the line start an in the following format:&lt;BR /&gt;
01/01/1970,00:00:00,UTC,...&lt;/P&gt;

&lt;P&gt;I've already set the format for strptime to %m/%d/%Y,%H:%M:%S an tried automatic timestamp search as well as defining a regex.&lt;BR /&gt;
But the only string which is highlighted (and detected as potential timestamp) ist 00:00:00.&lt;/P&gt;

&lt;P&gt;Ipython tells that the format sting matches the timestamp:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;In [11]: time.strptime("01/01/1970,00:00:00","%m/%d/%Y,%H:%M:%S")&lt;BR /&gt;
Out[11]: time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=-1)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I also tried the following things:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Removing the "," between date and time&lt;/LI&gt;
&lt;LI&gt;Adding a prefix to each line&lt;/LI&gt;
&lt;LI&gt;Changing the dates to a day later than 01/01/1970&lt;/LI&gt;
&lt;LI&gt;Swapping %m and %d just in case of any doubts&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Installed Splunk version is 6.1.1&lt;/P&gt;

&lt;P&gt;Does anybody have an idea what I can do that splunk correctly recognizes the time of the lines?&lt;BR /&gt;
Kind regards in advance!&lt;BR /&gt;
Markus&lt;/P&gt;

&lt;P&gt;First lines of my log are:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;01/01/1970,00:00:00,UTC,..C.,REG,NTUSER key : Typed Paths,Last Written,-,xxx,[\Software\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths]...&lt;BR /&gt;
01/01/1970,00:00:00,UTC,..C.,REG,NTUSER key : RDP Connection,Last Written,-,xxx,[\Software\Microsoft\Terminal Server Client\Default] MRU1:...&lt;BR /&gt;
01/01/1970,00:00:00,UTC,..C.,REG,NTUSER key : Typed Paths,Last Written,-,xxx,[\Software\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths] ...&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2014 10:57:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problems-with-timestamp-detection-with-log2timeline-output/m-p/171163#M34549</guid>
      <dc:creator>mpo</dc:creator>
      <dc:date>2014-05-20T10:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with timestamp detection with log2timeline output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problems-with-timestamp-detection-with-log2timeline-output/m-p/171164#M34550</link>
      <description>&lt;P&gt;If those dates are  your literal dates, they are beyond the maximum number of days back Splunk will recognize (MAX_DAYS_AGO). You need to modify that max in props.conf in order to catch something that far back.&lt;/P&gt;

&lt;P&gt;According to the documentation the maximum this number can be is 10951 though, I'm thinking that will only get you back around 1984.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.1/Admin/Propsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.1/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:39:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problems-with-timestamp-detection-with-log2timeline-output/m-p/171164#M34550</guid>
      <dc:creator>jeremiahc4</dc:creator>
      <dc:date>2020-09-28T16:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with timestamp detection with log2timeline output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problems-with-timestamp-detection-with-log2timeline-output/m-p/171165#M34551</link>
      <description>&lt;P&gt;Weird!&lt;BR /&gt;
Not quite a new issue - but I never thought, that the MAY_DAYS_AGO setting might be there and causes the trouble.&lt;/P&gt;

&lt;P&gt;Thanks a lot!&lt;/P&gt;

&lt;P&gt;Is there any additional attribute for props.conf, which sets a custom fallback time, when no timestamp is detected? I don't find any in the documentation and in answers.splunk.com.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:40:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problems-with-timestamp-detection-with-log2timeline-output/m-p/171165#M34551</guid>
      <dc:creator>mpo</dc:creator>
      <dc:date>2020-09-28T16:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with timestamp detection with log2timeline output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problems-with-timestamp-detection-with-log2timeline-output/m-p/171166#M34552</link>
      <description>&lt;P&gt;It looks like DATETIME_CONFIG could be used to mess with what gets used in the case when Splunk doesn't recognize a date. . It appears to point to a datetime.xml file which is used to recognize your timestamp. Perhaps if you're XML savvy, you could make mods there. I've not played with this before though, so can't recommend anything with it. As with any edits, make a backup copy first!&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2014 12:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problems-with-timestamp-detection-with-log2timeline-output/m-p/171166#M34552</guid>
      <dc:creator>jeremiahc4</dc:creator>
      <dc:date>2014-05-20T12:42:39Z</dc:date>
    </item>
  </channel>
</rss>

