﻿<?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  » Parsing optional columns</title><generator>InstantForum 2017-1 Final</generator><description>LogViewPlus Support</description><link>https://www.logviewplus.com/forum/</link><webMaster>LogViewPlus Support</webMaster><lastBuildDate>Wed, 13 May 2026 22:00:09 GMT</lastBuildDate><ttl>20</ttl><item><title>Parsing optional columns</title><link>https://www.logviewplus.com/forum/post/604</link><description>The logger that my predecessor wrote only writes the exact data passed to it, and does not fill in blanks for unused columns per entry. I don't see any way of handling for something like this in the parser.&lt;br/&gt;For example:&lt;br/&gt;[code]16:58:34.00408&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ActorName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LogMessage&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LogData&lt;br/&gt;16:58:34.00959&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ActorName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Method2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;16:58:34.01260&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ActorName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Method3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LogMessage&lt;br/&gt;16:58:34.01310&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ActorName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LogMessage&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LogData[/code]&lt;br/&gt;It's tab delimited, but the number of tabs per newline can vary. What I've been getting is lines not parsing correctly and having a single Logviewplus entry containing multiple actual lines.&lt;br/&gt;&lt;br/&gt;Has anyone else experienced this? Is there support for something like this in LVP? I'm working on standardizing the logger to always put 5 tabs, regardless of if there was a Message or Data, but I still need to be able to read old logs right now and it's hard when randomly lines will be missing from the viewer</description><pubDate>Thu, 18 Jun 2020 05:37:43 GMT</pubDate><dc:creator>nzamora</dc:creator></item><item><title>RE: Parsing optional columns</title><link>https://www.logviewplus.com/forum/post/605</link><description>Hi Nzamora,&lt;br/&gt;&lt;br/&gt;I am able to parse the optional fields in this log file with the DsvParser.&amp;nbsp; I am using the pattern:&lt;br/&gt;%d{filedate-modified %H:mm:ss.fffff}\t%S{Name}\t%S{Method}\t%m\t%S{Data}%n&lt;br/&gt;&lt;br/&gt;&lt;img src="../Uploads/Images/a2eb371a-740f-4feb-926c-f9db.png" data-download-url="../Uploads/Images/9de03529-ebba-43ba-a0d9-1184.png" id="if_insertedNode_1592458127476"&gt;&lt;br/&gt;&lt;br/&gt;For anyone else reading this thread, it is important to note that the PatternParser does not support optional fields.&amp;nbsp; The PatternParser is more widely used than the DsvParser and this is an issue we frequently see with that parser.&amp;nbsp; We have some plans to work around this issue with secondary parsing, but this feature is still a few months away.&lt;br/&gt;&lt;br/&gt;The 'filedate-modified' flag used above is a bit unusual.&amp;nbsp; It is described here:&lt;br/&gt;&lt;a href="https://www.logviewplus.com/docs/resolve_log_entry_date.html"&gt;https://www.logviewplus.com/docs/resolve_log_entry_date.html&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Hope that helps,&lt;br/&gt;&lt;br/&gt;Toby</description><pubDate>Thu, 18 Jun 2020 05:37:43 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item></channel></rss>