<?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 Issues with TIME_ROMAT Field in props.conf file in Security</title>
    <link>https://community.splunk.com/t5/Security/Issues-with-TIME-ROMAT-Field-in-props-conf-file/m-p/655757#M17228</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have some issues with the TIME_FORMAT field in props.conf file, getting some error messages "Failed to parse timestamp, defaulting to file modtime" . My pprops.conf file and a couple of sample events are given below. Any help will be highly appreciated. Thank you!&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;00000000|REG|USER|LOGIN|rsd56qa|00000000||10.108.125.71|01||2023-05-09T11:00:59.000-04.00||||||success|

00000000|REG|USER|LOGIN|adb23rm|00000000||10.108.125.71|06||2023-05-10T06:05:43.000-04.00||||||success|&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;[sourcetype]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)
TIME_PREFIX=([^\|]+\|){10}
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3N
MAX_TIMESTAMP_LOOKAHEAD=30
TRUNCATE=2500&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 28 Aug 2023 08:40:29 GMT</pubDate>
    <dc:creator>SplunkDash</dc:creator>
    <dc:date>2023-08-28T08:40:29Z</dc:date>
    <item>
      <title>Issues with TIME_ROMAT Field in props.conf file</title>
      <link>https://community.splunk.com/t5/Security/Issues-with-TIME-ROMAT-Field-in-props-conf-file/m-p/655757#M17228</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have some issues with the TIME_FORMAT field in props.conf file, getting some error messages "Failed to parse timestamp, defaulting to file modtime" . My pprops.conf file and a couple of sample events are given below. Any help will be highly appreciated. Thank you!&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;00000000|REG|USER|LOGIN|rsd56qa|00000000||10.108.125.71|01||2023-05-09T11:00:59.000-04.00||||||success|

00000000|REG|USER|LOGIN|adb23rm|00000000||10.108.125.71|06||2023-05-10T06:05:43.000-04.00||||||success|&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;[sourcetype]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)
TIME_PREFIX=([^\|]+\|){10}
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3N
MAX_TIMESTAMP_LOOKAHEAD=30
TRUNCATE=2500&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 28 Aug 2023 08:40:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Issues-with-TIME-ROMAT-Field-in-props-conf-file/m-p/655757#M17228</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2023-08-28T08:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with TIME_ROMAT Field in props.conf file</title>
      <link>https://community.splunk.com/t5/Security/Issues-with-TIME-ROMAT-Field-in-props-conf-file/m-p/655758#M17229</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234909"&gt;@SplunkDash&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Your time prefix needs to change. Also, don't set MAX_TIMESTAMP_LOOKAHEAD if your timestamp is in the text following the end of the TIME_PREFIX regex match. Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[sourcetype]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)
TIME_PREFIX=.+\|[\d\.]+\|\d+\|\|
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3N
# MAX_TIMESTAMP_LOOKAHEAD=30
TRUNCATE=2500&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 03:34:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Issues-with-TIME-ROMAT-Field-in-props-conf-file/m-p/655758#M17229</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2023-08-28T03:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with TIME_ROMAT Field in props.conf file</title>
      <link>https://community.splunk.com/t5/Security/Issues-with-TIME-ROMAT-Field-in-props-conf-file/m-p/655760#M17230</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you so much for your quick response. But issue with as sometimes we have values between || before timetsamp.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;00000000|REG|USER|LOGIN|rsd56qa|00000000||10.108.125.71|01&lt;STRONG&gt;||&lt;/STRONG&gt;2023-05-09T11:00:59.000-04.00||||||success|&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 03:42:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Issues-with-TIME-ROMAT-Field-in-props-conf-file/m-p/655760#M17230</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2023-08-28T03:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with TIME_ROMAT Field in props.conf file</title>
      <link>https://community.splunk.com/t5/Security/Issues-with-TIME-ROMAT-Field-in-props-conf-file/m-p/655761#M17231</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, I just tweak a little with my props, and working now as expected. Thank you so much for your support in these efforts.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[sourcetype]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)

TIME_PREFIX=([^\|]*\|){10}    # I used "*" instead of "+"

TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3N
MAX_TIMESTAMP_LOOKAHEAD=30
TRUNCATE=2500&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 28 Aug 2023 08:43:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Issues-with-TIME-ROMAT-Field-in-props-conf-file/m-p/655761#M17231</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2023-08-28T08:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with TIME_ROMAT Field in props.conf file</title>
      <link>https://community.splunk.com/t5/Security/Issues-with-TIME-ROMAT-Field-in-props-conf-file/m-p/655775#M17232</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;as this seems to be "|" separated file, I said that you should/could use that when ingesting this file.&lt;/P&gt;&lt;P&gt;Then you have wrongly defined TZ on your event! You have "-04.00" when it should be "-04:00" or "-0400"! This will break TZ recognition! You should ask that this will fixed or another option is remove ".00" when you use that. You could it by "&lt;SPAN&gt;%:::z" which should handle this, but You should remember that there are couple of TZ where the difference is XX:30 instead of XX:00 and those will be broken until source formatting is fixed!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Just tested and if you have "%:z" and "-04.30" then it just use "-04" and you will get wrong TZ, but with "-04.00" it handle "correctly" as there dropped part is "00".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You could try something like&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[&amp;lt;Your sourcetype&amp;gt;]
SHOULD_LINEMERGE=true
LINE_BREAKER=([\r\n]+)
NO_BINARY_CHECK=true
FIELD_DELIMITER=|
FIELD_NAMES=f1,REG,USER,login,f5,f6,f7,src_ip,f9,f10,ts,f12,f13,f14,f15,f16,status
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3Q%:z
TIME_PREFIX=([^\|]*\|){10}
MAX_TIMESTAMP_LOOKAHEAD=29&lt;/LI-CODE&gt;&lt;P&gt;on your UF. &amp;nbsp;Just fix those FIELD_NAMES to correct ones.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 07:32:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Issues-with-TIME-ROMAT-Field-in-props-conf-file/m-p/655775#M17232</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-08-28T07:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with TIME_ROMAT Field in props.conf file</title>
      <link>https://community.splunk.com/t5/Security/Issues-with-TIME-ROMAT-Field-in-props-conf-file/m-p/655839#M17235</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you so much for your recommendation. It's working as expected, only chance I needed to make marked as&amp;nbsp;&lt;STRONG&gt;Bold:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[&amp;lt;Your sourcetype&amp;gt;]&lt;BR /&gt;SHOULD_LINEMERGE=true&lt;BR /&gt;LINE_BREAKER=([\r\n]+)&lt;BR /&gt;NO_BINARY_CHECK=true&lt;BR /&gt;FIELD_DELIMITER=|&lt;BR /&gt;FIELD_NAMES=f1,REG,USER,login,f5,f6,f7,src_ip,f9,f10,ts,f12,f13,f14,f15,f16,status&lt;BR /&gt;TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3Q&lt;STRONG&gt;%:z&lt;/STRONG&gt; &lt;STRONG&gt;(-%z)&lt;/STRONG&gt;&lt;BR /&gt;TIME_PREFIX=([^\|]*\|){10}&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD=29&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 13:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Issues-with-TIME-ROMAT-Field-in-props-conf-file/m-p/655839#M17235</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2023-08-28T13:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with TIME_ROMAT Field in props.conf file</title>
      <link>https://community.splunk.com/t5/Security/Issues-with-TIME-ROMAT-Field-in-props-conf-file/m-p/655881#M17236</link>
      <description>Good to hear that this is working!&lt;BR /&gt;BUT still you have this issue on your TZ definition on log file. If you ever get logs from TZ which has its xx:30 (like some Indian like -05:30) shift instead of full hour, those will get a wrong UTC time on splunk.</description>
      <pubDate>Mon, 28 Aug 2023 16:41:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Issues-with-TIME-ROMAT-Field-in-props-conf-file/m-p/655881#M17236</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-08-28T16:41:17Z</dc:date>
    </item>
  </channel>
</rss>

