﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>LogViewPlus Support » LogViewPlus Support » Configuration &amp; Customization  » PatternParser can't deal with date format</title><generator>InstantForum 2017-1 Final</generator><description>LogViewPlus Support</description><link>https://www.logviewplus.com/forum/</link><webMaster>LogViewPlus Support</webMaster><lastBuildDate>Tue, 28 Apr 2026 06:24:48 GMT</lastBuildDate><ttl>20</ttl><item><title>PatternParser can't deal with date format</title><link>https://www.logviewplus.com/forum/post/298</link><description>I'm evaluating LogViewPlus and I've found something the pattern parser can't seem to deal with:&lt;br/&gt;1565810719.699780: Starting encoder process NOW!&lt;br/&gt;That line is one line of the output from a program called 'mencoder' (in this case version 1.3.0).&lt;br/&gt;That number at the front is the # of seconds since Jan 1, 1970, but mencoder has decided to print it with fractional sections (instead of printing it as a whole number of microseconds or something like our other log files do). &lt;br/&gt;Is there any way that I can get the pattern parser to deal with this properly? right now it just says parse error.&lt;br/&gt;Alternately, can someone tell me what regex parser inputs look like? If I had some examples of regex parser definitions that included dates, I might be able to work it out myself (at least to the point of getting the seconds as the date and leaving the fraction as it's own column).&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;</description><pubDate>Thu, 19 Sep 2019 11:40:07 GMT</pubDate><dc:creator>mhkohne</dc:creator></item><item><title>RE: PatternParser can't deal with date format</title><link>https://www.logviewplus.com/forum/post/338</link><description>That's great - thanks for letting me know.&lt;br/&gt;&lt;br/&gt;Toby </description><pubDate>Thu, 19 Sep 2019 11:40:07 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item><item><title>RE: PatternParser can't deal with date format</title><link>https://www.logviewplus.com/forum/post/337</link><description>&lt;blockquote data-id="336" class="if-quote-wrapper" unselectable="on"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="336" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="336" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="336" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;LogViewPlus Support - 9/14/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-336"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&lt;br/&gt;&lt;br/&gt;The latest release of LogViewPlus (v2.3.25) includes a new 'ElapsedDecimal' built in date format.&amp;nbsp; You can use this to parse your log files with:&lt;br/&gt;&lt;br/&gt;[code]%d{ElapsedDecimal}: %m%n[/code]&lt;br/&gt;&lt;br/&gt;Hope that helps.&amp;nbsp; Please let me know if you have any further questions or issues.&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Toby&lt;a class="if-quote-goto quote-link" href="#" data-id="336"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;br/&gt;Works great - thank you&lt;br/&gt;</description><pubDate>Thu, 19 Sep 2019 11:36:15 GMT</pubDate><dc:creator>mhkohne</dc:creator></item><item><title>RE: PatternParser can't deal with date format</title><link>https://www.logviewplus.com/forum/post/336</link><description>Hi,&lt;br/&gt;&lt;br/&gt;The latest release of LogViewPlus (v2.3.25) includes a new 'ElapsedDecimal' built in date format.&amp;nbsp; You can use this to parse your log files with:&lt;br/&gt;&lt;br/&gt;[code]%d{ElapsedDecimal}: %m%n[/code]&lt;br/&gt;&lt;br/&gt;Hope that helps.&amp;nbsp; Please let me know if you have any further questions or issues.&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Toby</description><pubDate>Sat, 14 Sep 2019 06:19:20 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item><item><title>RE: PatternParser can't deal with date format</title><link>https://www.logviewplus.com/forum/post/306</link><description>I'm perfectly happy with 'not pretty, but works fine' solutions.&lt;br/&gt;&lt;br/&gt;I'll pre-process on my own for now - it only took me 10 minutes to write the shell script, and it works just fine for the moment.&lt;br/&gt;&lt;br/&gt;Thank you again!&lt;br/&gt;</description><pubDate>Tue, 20 Aug 2019 12:00:12 GMT</pubDate><dc:creator>mhkohne</dc:creator></item><item><title>RE: PatternParser can't deal with date format</title><link>https://www.logviewplus.com/forum/post/302</link><description>Thanks for the update and the additional sample log entries.&amp;nbsp; &lt;br id="if_insertedNode_1566270669486"&gt;&lt;br id="if_insertedNode_1566270669846"&gt;I think the likely solution here will be a new custom date format that can be used with the pattern parser.&amp;nbsp; For example %d{TICK_WITH_FRACTIONAL_SECONDS}.&amp;nbsp; It's not pretty, but parsing the log entry date is a core part of the application and we need a lot of flexibility.&lt;br id="if_insertedNode_1566270813375"&gt;&lt;br id="if_insertedNode_1566270813537"&gt;If you are considering pre-processing your logs, you might also want to consider a custom parser:&lt;br id="if_insertedNode_1566270865469"&gt;&lt;a href="https://www.logviewplus.com/docs/custom_parsers.html"&gt;https://www.logviewplus.com/docs/custom_parsers.html&lt;/a&gt;&lt;br id="if_insertedNode_1566270866674"&gt;&lt;br id="if_insertedNode_1566270866839"&gt;You may also be able to use a post processor:&lt;br id="if_insertedNode_1566270924401"&gt;&lt;a href="https://www.logviewplus.com/docs/post_processors.html"&gt;https://www.logviewplus.com/docs/post_processors.html&lt;/a&gt;&lt;br id="if_insertedNode_1566270925252"&gt;&lt;br id="if_insertedNode_1566270925463"&gt;You can use a post processor or read the fractional "string" value and append this to the log entry date.​&amp;nbsp; This is a bit of a hack, but it may suffice until we can get a fix in.&lt;br id="if_insertedNode_1566270983099"&gt;&lt;br id="if_insertedNode_1566270983244"&gt;Thanks again,&lt;br id="if_insertedNode_1566270984576"&gt;&lt;br id="if_insertedNode_1566270984715"&gt;Toby​​​​​​​​​​​​​​​</description><pubDate>Tue, 20 Aug 2019 03:17:31 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item><item><title>RE: PatternParser can't deal with date format</title><link>https://www.logviewplus.com/forum/post/301</link><description>I agree it's an unusual date format, and I'm not the least bit surprised you've not seen it before, I certainly hadn't.&lt;br/&gt;For the moment I may consider pre-processing the logs to turn those values into numbers of microseconds. &lt;br/&gt;&lt;br/&gt;For reference, here's a couple of other lines: &lt;br/&gt;1566086399.889997: openAviSegment took 0 ms&lt;br/&gt;1566089999.981911: video buffer full - dropping frame&lt;br/&gt;1566090000.14852: video buffer full - dropping frame&lt;br/&gt;1566090000.47759: video buffer full - dropping frame&lt;br/&gt;1566090000.80712: video buffer full - dropping frame&lt;br/&gt;1566090000.113648: video buffer full - dropping frame&lt;br/&gt;Note that as you'd expect for a fractional value, there's sometimes fewer digits after the decimal. I'm not clear whether this particular implementation can end up without the decimal at all (I've never noticed it hit exactly on the second before). I wouldn't be shocked to see the decimal entirely missing (1566086399), a single zero (1566086399.0) or even the entirely stupid just the decimal (1566086399. )&lt;br/&gt;&lt;br/&gt;Also, for anyone coming along later, the link for the Pattern Parser docs in the reply above appears to have an extra invisible character at the end. Manually copy and paste it into your browser and delete the junk, and it's fine.&lt;br/&gt;&lt;br/&gt;Thank you.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 19 Aug 2019 12:19:37 GMT</pubDate><dc:creator>mhkohne</dc:creator></item><item><title>RE: PatternParser can't deal with date format</title><link>https://www.logviewplus.com/forum/post/299</link><description>Hi,&lt;br id="if_insertedNode_1565999517849"&gt;&lt;br id="if_insertedNode_1565999517986"&gt;Thanks for reporting this issue.&amp;nbsp; I have been able to recreate the problem on my end and can confirm that this is a bug.&amp;nbsp; This is an unusual date format that we have not seen before and we will get this issue fixed in the next release.​​&lt;br id="if_insertedNode_1565999578033"&gt;&lt;br id="if_insertedNode_1565999578540"&gt;The best I can suggest​ for now is to use a multi-parse described here:&lt;br id="if_insertedNode_1566000380431"&gt;&lt;a href="https://www.logviewplus.com/docs/pattern_parser.html​"&gt;https://www.logviewplus.com/docs/pattern_parser.html​&lt;/a&gt;&lt;br id="if_insertedNode_1566000715279"&gt;​​&lt;br id="if_insertedNode_1566000380793"&gt;For example, I can parse this log entry to minute level accuracy with:&lt;br id="if_insertedNode_1566000413572"&gt;&lt;b&gt;%r.%s: %m%n&lt;br&gt;%d: %m%n&lt;/b&gt;&lt;br id="if_insertedNode_1566000736183"&gt;&lt;br id="if_insertedNode_1566000716630" style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: rgb(34, 34, 34); font-family: arial,tahoma; font-size: 13.33px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; width: auto; word-spacing: 0px;"&gt;&lt;span style="display: inline !important; float: none; background-color: rgb(255, 255, 255); color: rgb(34, 34, 34); cursor: text; font-family: arial,tahoma; font-size: 13.33px; font-size-adjust: none; font-stretch: 100%; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;The second parse format is used to handle the situation where no decimal place is found.&amp;nbsp; This may not be necessary depending on your log file.&amp;nbsp; Note that multi-parse configurations are not supported by the ParserWizard so you will need to enter the configuration manually.&lt;br id="if_insertedNode_1566000739899"&gt;&lt;br id="if_insertedNode_1566000740065"&gt;​​&lt;/span&gt;​Hope that helps.&amp;nbsp; I will update you here when we have a fix available in beta.&lt;br id="if_insertedNode_1566000808329"&gt;&lt;br id="if_insertedNode_1566000808524"&gt;Thanks,&lt;br id="if_insertedNode_1566000815560"&gt;&lt;br id="if_insertedNode_1566000816061"&gt;Toby​​​​​&lt;br id="if_insertedNode_1566000417783"&gt;​​​​​​​​</description><pubDate>Sat, 17 Aug 2019 00:15:31 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item></channel></rss>