<?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: DateParserverbose warning logs despite having proper Time format and prefix in props.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/DateParserverbose-warning-logs-despite-having-proper-Time-format/m-p/632907#M219844</link>
    <description>&lt;P&gt;Maybe because TIME_FORMAT is improper? &amp;nbsp;Try without Z&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3Q&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can test these two using the example you gave above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval test=split("Mar 1 07:31:00 xxxxxxx info-message(time=2023-03-01T07:31:00.137, appname=abc, user=john, server=xxx, port=123, msg=logged in) [] [logger] [https:xxxx]
Mar 1 08:29:33 xxxxxxx info-message(time=2023-03-01T08:29:33.135, appname=abc, user=moon, server=yyy, port=897, msg=logged in) [] [logger] [https:xxxx]", "
")
| mvexpand test
| rename test as _raw
| extract
| fields - _raw _time
| eval _time = strptime(time, "%Y-%m-%dT%H:%M:%S.%3QZ")
| eval forreal = strptime(time, "%Y-%m-%dT%H:%M:%S.%3Q")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output only has forreal, and no _time&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="57.859375px" height="25px"&gt;appname&lt;/TD&gt;&lt;TD width="167.71875px" height="25px"&gt;forreal&lt;/TD&gt;&lt;TD width="59.40625px" height="25px"&gt;msg&lt;/TD&gt;&lt;TD width="40px" height="25px"&gt;port&lt;/TD&gt;&lt;TD width="40.234375px" height="25px"&gt;server&lt;/TD&gt;&lt;TD width="203.890625px" height="25px"&gt;time&lt;/TD&gt;&lt;TD width="52.328125px" height="25px"&gt;user&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="57.859375px" height="25px"&gt;abc&lt;/TD&gt;&lt;TD width="167.71875px" height="25px"&gt;1677684660.137000&lt;/TD&gt;&lt;TD width="59.40625px" height="25px"&gt;logged&lt;/TD&gt;&lt;TD width="40px" height="25px"&gt;123&lt;/TD&gt;&lt;TD width="40.234375px" height="25px"&gt;xxx&lt;/TD&gt;&lt;TD width="203.890625px" height="25px"&gt;2023-03-01T07:31:00.137&lt;/TD&gt;&lt;TD width="52.328125px" height="25px"&gt;john&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="57.859375px" height="25px"&gt;abc&lt;/TD&gt;&lt;TD width="167.71875px" height="25px"&gt;1677688173.135000&lt;/TD&gt;&lt;TD width="59.40625px" height="25px"&gt;logged&lt;/TD&gt;&lt;TD width="40px" height="25px"&gt;897&lt;/TD&gt;&lt;TD width="40.234375px" height="25px"&gt;yyy&lt;/TD&gt;&lt;TD width="203.890625px" height="25px"&gt;2023-03-01T08:29:33.135&lt;/TD&gt;&lt;TD width="52.328125px" height="25px"&gt;moon&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Thu, 02 Mar 2023 04:47:15 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2023-03-02T04:47:15Z</dc:date>
    <item>
      <title>DateParserverbose warning logs despite having proper Time format and prefix in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DateParserverbose-warning-logs-despite-having-proper-Time-format/m-p/632822#M219820</link>
      <description>&lt;P&gt;Hey community,&lt;/P&gt;&lt;P&gt;Need your help!!!!&lt;/P&gt;&lt;P&gt;We have lot of internal warn logs for DateParserverbose issue in our splunk prod environment despite passing correct values in TIME_FORMAT, TIME_PREFIX and MAX_TIMESTAMP_LOOKAHEAD attributes in our props.conf. I have listed down warn logs, sample logs and props.conf for your reference.&lt;/P&gt;&lt;P&gt;e.g internal warn log- Failed to parsetimestamp in first MAX_TIMESTAMP_LOOKAHEAD (30) characters of event. Defaulting to timestamp of previous event for sourcetype-test&lt;/P&gt;&lt;P&gt;Sample raw event logs:&lt;BR /&gt;Mar 1 07:31:00 xxxxxxx info-message(time=2023-03-01T07:31:00.137, appname=abc, user=john, server=xxx, port=123, msg=logged in) [] [logger] [https:xxxx]&lt;BR /&gt;Mar 1 08:29:33 xxxxxxx info-message(time=2023-03-01T08:29:33.135, appname=abc, user=moon, server=yyy, port=897, msg=logged in) [] [logger] [https:xxxx]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Below is our props and transforms that is used to ingest only clean &amp;amp; required logs to splunk prod:&lt;/P&gt;&lt;P&gt;[sourcetype-test]&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;LINE_BREAKER = (time\=)|\w+\s+\d+\s+\d+:\d+:\d+|\)&lt;BR /&gt;TIME_PREFIX = ^&lt;BR /&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3QZ&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD = 32&lt;BR /&gt;TRANSFORMS-test = test_null, test_parsing&lt;/P&gt;&lt;P&gt;[test_null]&lt;BR /&gt;REGEX = .&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;/P&gt;&lt;P&gt;[test_parsing]&lt;BR /&gt;REGEX =&amp;nbsp;appname&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = indexQueue&lt;/P&gt;&lt;P&gt;Below are the clean log samples that are ingested to splunk as expected but when I check for internal logs for this sourcetype I am seeing lot of warnings for DateParserverbose. So, just wanted to know 1) why there are warn logs when time related settings are correct and is there any way out to fix my props configs to avoid warn logs related to DateParserverbose ?&lt;/P&gt;&lt;P&gt;time=2023-03-01T07:31:00.137, appname=abc, user=john, server=xxx, port=123, msg=logged in&lt;BR /&gt;time=2023-03-01T08:29:33.135, appname=abc, user=moon, server=yyy, port=897, msg=logged in&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 17:01:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DateParserverbose-warning-logs-despite-having-proper-Time-format/m-p/632822#M219820</guid>
      <dc:creator>likithgowda</dc:creator>
      <dc:date>2023-03-01T17:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: DateParserverbose warning logs despite having proper Time format and prefix in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DateParserverbose-warning-logs-despite-having-proper-Time-format/m-p/632907#M219844</link>
      <description>&lt;P&gt;Maybe because TIME_FORMAT is improper? &amp;nbsp;Try without Z&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3Q&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can test these two using the example you gave above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval test=split("Mar 1 07:31:00 xxxxxxx info-message(time=2023-03-01T07:31:00.137, appname=abc, user=john, server=xxx, port=123, msg=logged in) [] [logger] [https:xxxx]
Mar 1 08:29:33 xxxxxxx info-message(time=2023-03-01T08:29:33.135, appname=abc, user=moon, server=yyy, port=897, msg=logged in) [] [logger] [https:xxxx]", "
")
| mvexpand test
| rename test as _raw
| extract
| fields - _raw _time
| eval _time = strptime(time, "%Y-%m-%dT%H:%M:%S.%3QZ")
| eval forreal = strptime(time, "%Y-%m-%dT%H:%M:%S.%3Q")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output only has forreal, and no _time&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="57.859375px" height="25px"&gt;appname&lt;/TD&gt;&lt;TD width="167.71875px" height="25px"&gt;forreal&lt;/TD&gt;&lt;TD width="59.40625px" height="25px"&gt;msg&lt;/TD&gt;&lt;TD width="40px" height="25px"&gt;port&lt;/TD&gt;&lt;TD width="40.234375px" height="25px"&gt;server&lt;/TD&gt;&lt;TD width="203.890625px" height="25px"&gt;time&lt;/TD&gt;&lt;TD width="52.328125px" height="25px"&gt;user&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="57.859375px" height="25px"&gt;abc&lt;/TD&gt;&lt;TD width="167.71875px" height="25px"&gt;1677684660.137000&lt;/TD&gt;&lt;TD width="59.40625px" height="25px"&gt;logged&lt;/TD&gt;&lt;TD width="40px" height="25px"&gt;123&lt;/TD&gt;&lt;TD width="40.234375px" height="25px"&gt;xxx&lt;/TD&gt;&lt;TD width="203.890625px" height="25px"&gt;2023-03-01T07:31:00.137&lt;/TD&gt;&lt;TD width="52.328125px" height="25px"&gt;john&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="57.859375px" height="25px"&gt;abc&lt;/TD&gt;&lt;TD width="167.71875px" height="25px"&gt;1677688173.135000&lt;/TD&gt;&lt;TD width="59.40625px" height="25px"&gt;logged&lt;/TD&gt;&lt;TD width="40px" height="25px"&gt;897&lt;/TD&gt;&lt;TD width="40.234375px" height="25px"&gt;yyy&lt;/TD&gt;&lt;TD width="203.890625px" height="25px"&gt;2023-03-01T08:29:33.135&lt;/TD&gt;&lt;TD width="52.328125px" height="25px"&gt;moon&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 02 Mar 2023 04:47:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DateParserverbose-warning-logs-despite-having-proper-Time-format/m-p/632907#M219844</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-03-02T04:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: DateParserverbose warning logs despite having proper Time format and prefix in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DateParserverbose-warning-logs-despite-having-proper-Time-format/m-p/632915#M219848</link>
      <description>&lt;P&gt;Updated raw event logs :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Mar 1 07:31:00 xxxxxxx info-message(time=2023-03-01T07:31:00.137Z, appname=abc, user=john, server=xxx, port=123, msg=logged in) [] [logger] [https:xxxx]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mar 1 08:29:33 xxxxxxx info-message(time=2023-03-01T08:29:33.135Z, appname=abc, user=moon, server=yyy, port=897, msg=logged in) [] [logger] [https:xxxx]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 06:10:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DateParserverbose-warning-logs-despite-having-proper-Time-format/m-p/632915#M219848</guid>
      <dc:creator>likithgowda</dc:creator>
      <dc:date>2023-03-02T06:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: DateParserverbose warning logs despite having proper Time format and prefix in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DateParserverbose-warning-logs-despite-having-proper-Time-format/m-p/632918#M219850</link>
      <description>&lt;P&gt;Thanks for replying to my post. Time in our _raw logs is ending with Z so shared the updated sample logs (below). Do you think the&amp;nbsp;dateparserverbose warning logs are because of un-wanted data ? as you can see from below example they have improper time or no time available. But all scrap events are sent to nullQueue so not really sure why we still see warn logs for those scrap events in our _interna index.&amp;nbsp; so any thoughts to avoid or fix this ? Appreciate your help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex : -Line breaker is breaking first _raw event as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Mar 1 07:31:00 xxxxxxx info-message&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(time=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2023-03-01T07:31:00.137Z, appname=abc, user=john, server=xxx, port=123, msg=logged in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;) [] [logger] [https:xxxx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Updated sample raw event logs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mar 1 07:31:00 xxxxxxx info-message(time=2023-03-01T07:31:00.137Z, appname=abc, user=john, server=xxx, port=123, msg=logged in) [] [logger] [https:xxxx]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mar 1 08:29:33 xxxxxxx info-message(time=2023-03-01T08:29:33.135Z, appname=abc, user=moon, server=yyy, port=897, msg=logged in) [] [logger] [https:xxxx]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 06:32:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DateParserverbose-warning-logs-despite-having-proper-Time-format/m-p/632918#M219850</guid>
      <dc:creator>likithgowda</dc:creator>
      <dc:date>2023-03-02T06:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: DateParserverbose warning logs despite having proper Time format and prefix in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DateParserverbose-warning-logs-despite-having-proper-Time-format/m-p/632934#M219859</link>
      <description>&lt;P&gt;You are correct. &amp;nbsp;Using line breaker that way doesn't make the unwanted data disappear. &amp;nbsp;The indexer still have to ingest them. &amp;nbsp;I was wondering what you intend to do with those trims, but didn't think of the error they trigger.&lt;/P&gt;&lt;P&gt;Why would you want to trim your raw data, anyway? &amp;nbsp;That's generally a bad idea.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 08:51:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DateParserverbose-warning-logs-despite-having-proper-Time-format/m-p/632934#M219859</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-03-02T08:51:56Z</dc:date>
    </item>
  </channel>
</rss>

