﻿<?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 » Help &amp; Support  » Parsing words as log level based of first few letters</title><generator>InstantForum 2017-1 Final</generator><description>LogViewPlus Support</description><link>https://www.logviewplus.com/forum/</link><webMaster>LogViewPlus Support</webMaster><lastBuildDate>Sat, 11 Apr 2026 07:41:27 GMT</lastBuildDate><ttl>20</ttl><item><title>Parsing words as log level based of first few letters</title><link>https://www.logviewplus.com/forum/post/494</link><description>Hi!&lt;br/&gt;I have a log file designed (poorly) as follows:&lt;br/&gt;&lt;br/&gt;3 2020-04-09 10:57:58 Doing a first pass over 353 file(s).  &lt;br/&gt;  3 2020-04-09 10:57:58 Skipping file C:\Users\...&amp;nbsp;&amp;nbsp;&lt;br/&gt;  7 2020-04-09 10:57:58 - Found tag number...&lt;br/&gt;3 2020-04-09 10:58:01 Created Acquisition...&amp;nbsp;&amp;nbsp;&lt;br/&gt;3 2020-04-09 10:59:16 Warning: There are elements...&lt;br/&gt;There is no explicit log level for the first two entries. The words "Doing", "Skipping" and "Created" are parsed as if they were a log level DEBUG, SEVERE and CRITICAL respectively.&lt;br/&gt;What I would like is to have an UNKNOWN level for those, as it is for the dash "-" before "Found tag number.."&lt;br/&gt;Here's my config&amp;nbsp;  %t %d{yyyy-MM-dd %H:mm:ss} %p %m%n &lt;br/&gt;&lt;br/&gt;Thank you!&lt;br/&gt;&lt;br/&gt;/Teresa</description><pubDate>Thu, 09 Apr 2020 14:10:49 GMT</pubDate><dc:creator>Teresa</dc:creator></item><item><title>RE: Parsing words as log level based of first few letters</title><link>https://www.logviewplus.com/forum/post/497</link><description>Unfortunately, it is very difficult to parse situations which occur 'sometimes'.&amp;nbsp; We have some ideas on how to improve things, but we are probably looking at several months before release.&lt;br/&gt;&lt;br/&gt;In this case, it may be that the structure of your log file cannot be accurately described beyond:&amp;nbsp;&amp;nbsp;%t %d{yyyy-MM-dd %H:mm:ss} %m%n&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Toby</description><pubDate>Thu, 09 Apr 2020 14:10:49 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item><item><title>RE: Parsing words as log level based of first few letters</title><link>https://www.logviewplus.com/forum/post/496</link><description>Thanks Toby!&amp;nbsp;That was fast :) &lt;br/&gt;&lt;br/&gt;I've tried your suggestion but the log I have actually have too many weird stuff so that config doesn't apply to the entire file.&lt;br/&gt;I'll experiment with VS a bit, thanks for the tip!&lt;br/&gt;&lt;br/&gt;/Teresa</description><pubDate>Thu, 09 Apr 2020 12:55:08 GMT</pubDate><dc:creator>Teresa</dc:creator></item><item><title>RE: Parsing words as log level based of first few letters</title><link>https://www.logviewplus.com/forum/post/495</link><description>Hi Teresa,&lt;br/&gt;&lt;br/&gt;I think a &lt;a href="https://www.logviewplus.com/docs/multi_patterns.html" id="if_insertedNode_1586435477560"&gt;multi-pattern&lt;/a&gt; would be appropriate for this scenario.&amp;nbsp; In this case, your configuration could be:&lt;br/&gt;%t %d{yyyy-MM-dd %H:mm:ss} %p: %m%n&lt;br/&gt;%t %d{yyyy-MM-dd %H:mm:ss} %m%n&lt;br/&gt;&lt;br/&gt;This should work most of the time, but you may run into difficulties if you have a ": " in log entries without a priority.&amp;nbsp; The only alternative I can think of would be to create a &lt;a href="https://www.logviewplus.com/docs/custom_parsers.html" id="if_insertedNode_1586435715276"&gt;Custom Parser&lt;/a&gt;.&amp;nbsp; &lt;br/&gt;&lt;br/&gt;Hope that helps,&lt;br/&gt;&lt;br/&gt;Toby</description><pubDate>Thu, 09 Apr 2020 12:36:31 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item></channel></rss>