﻿<?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  » How to skip log entries that cannot be parsed</title><generator>InstantForum 2017-1 Final</generator><description>LogViewPlus Support</description><link>https://www.logviewplus.com/forum/</link><webMaster>LogViewPlus Support</webMaster><lastBuildDate>Mon, 04 May 2026 16:14:53 GMT</lastBuildDate><ttl>20</ttl><item><title>How to skip log entries that cannot be parsed</title><link>https://www.logviewplus.com/forum/post/1494</link><description>My IDE outputs some logs that do not match my formatted logs.&lt;br/&gt;This causes LogViewPlus to not be able to open the file.&lt;br/&gt;Is there a way to simply have the application skip entries it cannot parse?&lt;br/&gt;&lt;br/&gt;thanks,&lt;br/&gt;David</description><pubDate>Tue, 05 Jul 2022 05:41:14 GMT</pubDate><dc:creator>Ace</dc:creator></item><item><title>RE: How to skip log entries that cannot be parsed</title><link>https://www.logviewplus.com/forum/post/1497</link><description>The text:&lt;br/&gt;[code]&#x1B;[2J&#x1B;[m&#x1B;[H[/code]&lt;br/&gt;Cannot be used to represent a log entry because no timestamp can be determined.&lt;br/&gt;&lt;br/&gt;However, I don't think this text is causing the problem.&amp;nbsp; LogViewPlus should be appending this text to the next (or first) log entry.</description><pubDate>Tue, 05 Jul 2022 05:41:14 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item><item><title>RE: How to skip log entries that cannot be parsed</title><link>https://www.logviewplus.com/forum/post/1496</link><description>Thanks Toby...&lt;br/&gt;&lt;br/&gt;Here is the part of the log that is giving me trouble:&lt;br/&gt;The log starts with these series of characters, then newline, then my logs start...&lt;br/&gt;&#x1B;[2J&#x1B;[m&#x1B;[H&lt;br/&gt;&lt;br/&gt;How do I write a pattern for this?&lt;br/&gt;&lt;br/&gt;The pattern for my logs is:&lt;br/&gt;%d{yyyy-MM-dd %H:mm:ss}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;%S{Type}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;%S{Source}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;%S{Msg}%n&lt;br/&gt;&lt;br/&gt;Now I want to add a new pattern for:&lt;br/&gt;&#x1B;[2J&#x1B;[m&#x1B;[H&lt;br/&gt;&lt;br/&gt;I tried regex for exactly 10 chars - I want to ignore any line with exactly 10 chars.&lt;br/&gt;/^..........$/gm&lt;br/&gt;&lt;br/&gt;But if I check the "regex" i would think my original pattern would stop working.&lt;br/&gt;&lt;br/&gt;Regardless, it tells me "minimum of two elements must be found"&lt;br/&gt;&lt;br/&gt;any approach you would take?&lt;br/&gt;</description><pubDate>Tue, 05 Jul 2022 05:34:23 GMT</pubDate><dc:creator>Ace</dc:creator></item><item><title>RE: How to skip log entries that cannot be parsed</title><link>https://www.logviewplus.com/forum/post/1495</link><description>Hi David,&lt;br/&gt;&lt;br/&gt;Short of writing a &lt;a href="https://www.logviewplus.com/docs/custom_parsers.html" id="if_insertedNode_1656996496894"&gt;custom parser&lt;/a&gt;, there is no way to skip log entries.&amp;nbsp; &lt;br/&gt;&lt;br/&gt;I would expect LogViewPlus to handle an unknown log entry by appending it to the previous log entry.&amp;nbsp; In this way, the data can still be found with a text search.&amp;nbsp; I would certainly expect LogViewPlus to be able to open the log file.&amp;nbsp; Are you using the latest version of LogViewPlus?&amp;nbsp; What happens when the log file fails to open?&lt;br/&gt;&lt;br/&gt;If you want to parse the alternate format, you might want to consider parsing with a &lt;a href="https://www.logviewplus.com/docs/multi_patterns.html" id="if_insertedNode_1656996673469"&gt;multi-pattern&lt;/a&gt;.&lt;br/&gt;&lt;br/&gt;Hope that helps,&lt;br/&gt;&lt;br/&gt;Toby</description><pubDate>Tue, 05 Jul 2022 04:53:43 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item></channel></rss>