<?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 How to get timestamp from incomplete time field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-timestamp-from-incomplete-time-field/m-p/331650#M61451</link>
    <description>&lt;P&gt;Today I've been trying to index a logfile in which only the timefield hours is given. I tried several ways to import this in the right manner, but I can't seem to get it to work.. Does anybody know how Splunk would be able to index this logfile correctly?&lt;/P&gt;

&lt;P&gt;Here is one line from the log. The first element is the date field (here: 2016-12-01), where the second is the hour field (here: 0)&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;2016-12-01;0;BIM03_R_RWSTI4143;BIM03;ARS;RWS BI-meetnet;BI Meetnet  Geo3 ARA;Speed;lus;lane1;60.00;2017-01-23 22:00:00;100.00;0.00;0.00;0.00;95.00;5.00;0.00;0.00;0.00;0.00;0.00;0.00;96.67;3.33;0.00;0.00;0.00;0.00;0.00;0.00;0.00;0.00&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:04:24 GMT</pubDate>
    <dc:creator>mblauw</dc:creator>
    <dc:date>2020-09-29T13:04:24Z</dc:date>
    <item>
      <title>How to get timestamp from incomplete time field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-timestamp-from-incomplete-time-field/m-p/331650#M61451</link>
      <description>&lt;P&gt;Today I've been trying to index a logfile in which only the timefield hours is given. I tried several ways to import this in the right manner, but I can't seem to get it to work.. Does anybody know how Splunk would be able to index this logfile correctly?&lt;/P&gt;

&lt;P&gt;Here is one line from the log. The first element is the date field (here: 2016-12-01), where the second is the hour field (here: 0)&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;2016-12-01;0;BIM03_R_RWSTI4143;BIM03;ARS;RWS BI-meetnet;BI Meetnet  Geo3 ARA;Speed;lus;lane1;60.00;2017-01-23 22:00:00;100.00;0.00;0.00;0.00;95.00;5.00;0.00;0.00;0.00;0.00;0.00;0.00;96.67;3.33;0.00;0.00;0.00;0.00;0.00;0.00;0.00;0.00&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:04:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-timestamp-from-incomplete-time-field/m-p/331650#M61451</guid>
      <dc:creator>mblauw</dc:creator>
      <dc:date>2020-09-29T13:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get timestamp from incomplete time field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-timestamp-from-incomplete-time-field/m-p/331651#M61452</link>
      <description>&lt;P&gt;Something like this worked for me for your sample data&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ &amp;lt;SOURCETYPE NAME&amp;gt; ]
SHOULD_LINEMERGE=false
LINE_BREAKER = ([\r\n]+)(?=\d{4}-\d{2}-\d{2}\;)
TIME_PREFIX=^
TIME_FORMAT=%Y-%d-%m;%H
MAX_TIMESTAMP_LOOKAHEAD=13
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Feb 2017 23:12:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-timestamp-from-incomplete-time-field/m-p/331651#M61452</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-28T23:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get timestamp from incomplete time field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-timestamp-from-incomplete-time-field/m-p/331652#M61453</link>
      <description>&lt;P&gt;Thank you so much. I've been trying to find out how this works for quite a while now. Do you maybe have any documentation about how to construct such source types? (especially how to build up the LINE_BREAKER component and why TIME_PREFIX=^)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:04:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-timestamp-from-incomplete-time-field/m-p/331652#M61453</guid>
      <dc:creator>mblauw</dc:creator>
      <dc:date>2020-09-29T13:04:43Z</dc:date>
    </item>
  </channel>
</rss>

