<?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 Need help with timestamp recognition in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timestamp-recognition/m-p/522426#M147311</link>
    <description>&lt;P&gt;I have struggled with getting splunk to recognize timestamps in timestamps from an udp input. I have tried for many hours to figure this out, trying out suggestions found on forum. Hopefully someone here can point me in the right direction.&lt;BR /&gt;&lt;BR /&gt;My events comes in like this, where splunk has added a extra timestamp in exactly the same format as the one at the start of the message. So the events message start with two identical timestamps as seen below, the blacked out part is the Ip-adress. Clearly splunk does not recognize this timestamp an puts on it's own with the time of indexing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hethu_0-1601539548722.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11072iD98C9D29B613D17E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hethu_0-1601539548722.png" alt="hethu_0-1601539548722.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried to remove the ":" at the end of timestamp with no success, and i have also edited the props.conf&lt;BR /&gt;&lt;BR /&gt;Props.conf:&lt;BR /&gt;-----------------&lt;BR /&gt;[syslog_multiline]&lt;BR /&gt;BREAK_ONLY_BEFORE_DATE =&lt;BR /&gt;DATETIME_CONFIG =&lt;BR /&gt;LINE_BREAKER =&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;category = Operating System&lt;BR /&gt;disabled = false&lt;BR /&gt;pulldown_type = 1&lt;BR /&gt;TIME_FORMAT = %b %d %H:%M:%S&lt;BR /&gt;TIME_PREFIX =&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD = 17&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2020 08:15:38 GMT</pubDate>
    <dc:creator>hethu</dc:creator>
    <dc:date>2020-10-01T08:15:38Z</dc:date>
    <item>
      <title>Need help with timestamp recognition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timestamp-recognition/m-p/522426#M147311</link>
      <description>&lt;P&gt;I have struggled with getting splunk to recognize timestamps in timestamps from an udp input. I have tried for many hours to figure this out, trying out suggestions found on forum. Hopefully someone here can point me in the right direction.&lt;BR /&gt;&lt;BR /&gt;My events comes in like this, where splunk has added a extra timestamp in exactly the same format as the one at the start of the message. So the events message start with two identical timestamps as seen below, the blacked out part is the Ip-adress. Clearly splunk does not recognize this timestamp an puts on it's own with the time of indexing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hethu_0-1601539548722.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11072iD98C9D29B613D17E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hethu_0-1601539548722.png" alt="hethu_0-1601539548722.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried to remove the ":" at the end of timestamp with no success, and i have also edited the props.conf&lt;BR /&gt;&lt;BR /&gt;Props.conf:&lt;BR /&gt;-----------------&lt;BR /&gt;[syslog_multiline]&lt;BR /&gt;BREAK_ONLY_BEFORE_DATE =&lt;BR /&gt;DATETIME_CONFIG =&lt;BR /&gt;LINE_BREAKER =&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;category = Operating System&lt;BR /&gt;disabled = false&lt;BR /&gt;pulldown_type = 1&lt;BR /&gt;TIME_FORMAT = %b %d %H:%M:%S&lt;BR /&gt;TIME_PREFIX =&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD = 17&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 08:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timestamp-recognition/m-p/522426#M147311</guid>
      <dc:creator>hethu</dc:creator>
      <dc:date>2020-10-01T08:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with timestamp recognition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timestamp-recognition/m-p/522438#M147313</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/63452"&gt;@hethu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the approach when there are two timestamps in a log is to identify the correct one with TIME_PREFIX.&lt;/P&gt;&lt;P&gt;e.g. if you have a log like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Oct 01 10:10:56 10.10.10.10 Oct 01 10:09:12 fbdiunfuyfdixinuifniudniuin&lt;/LI-CODE&gt;&lt;P&gt;and you want the second timestamp, you should use as TIME_PREFIX the following regex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_PREFIX = ^\w+\s+\d+\s+\d+:\d+:\d+\s+&lt;/LI-CODE&gt;&lt;P&gt;In this way, you say to Splunk to use the second timestamp.&lt;/P&gt;&lt;P&gt;Obviously, the TIME_PREFIX depends on your logs so, if you have a different source, you have to find the correct regex for the TIME_PREFIX.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 09:21:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timestamp-recognition/m-p/522438#M147313</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-01T09:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with timestamp recognition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timestamp-recognition/m-p/522458#M147317</link>
      <description>The easy way to test it is put that data to the file and then use your dev splunk to play with it until you get it working.&lt;BR /&gt;r. Ismo</description>
      <pubDate>Thu, 01 Oct 2020 10:53:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timestamp-recognition/m-p/522458#M147317</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-10-01T10:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with timestamp recognition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timestamp-recognition/m-p/523592#M147677</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/63452"&gt;@hethu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 07:02:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timestamp-recognition/m-p/523592#M147677</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-08T07:02:44Z</dc:date>
    </item>
  </channel>
</rss>

