﻿<?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 - variable spaces and field lengths</title><generator>InstantForum 2017-1 Final</generator><description>LogViewPlus Support</description><link>https://www.logviewplus.com/forum/</link><webMaster>LogViewPlus Support</webMaster><lastBuildDate>Sat, 09 May 2026 03:01:41 GMT</lastBuildDate><ttl>20</ttl><item><title>Parsing - variable spaces and field lengths</title><link>https://www.logviewplus.com/forum/post/955</link><description>Hi&amp;nbsp; newbie here without a clue on the parsing..... What I'm trying to do is get the something from the following log file.&amp;nbsp;&lt;br/&gt;09:55:19.09 [DISP]&amp;nbsp;&amp;nbsp;PBX: Received Call Status [Address=581]: Call [Ref=0x00202aae] [State=Idle] [Reason=Transfer].&lt;br/&gt;09:55:19.10 [DISP]&amp;nbsp;  QControl: Update agent state for [NameId=405], [Address=581] to [State=Login, Ready, Worktime, AutoWorkTime].&lt;br/&gt;09:55:19.10 [DISP]&amp;nbsp;&amp;nbsp;PBX: Received Call Status [Address=581]: Call [Ref=0x00202ab0] [State=Idle] [Reason=Transfer].&lt;br/&gt;&lt;br/&gt;The parser wizard parses the time&amp;nbsp; but then then everything else is parsed as a message.&amp;nbsp;&lt;br/&gt; &lt;br/&gt;1. What I would like is is to have the the six-characters starting and ending with brackets to be a field say "Source"&amp;nbsp; &amp;nbsp;This would be for the [DISP] field. &lt;br/&gt;2. Then there is a space and a variable number of characters that terminate in in a colon.&amp;nbsp; &amp;nbsp;The PBX: QControl: field. might call this "FROM"&amp;nbsp;&lt;br/&gt;&lt;br/&gt;3. Everything after the colon plus a space can be the message field.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;TIME ----- SOURCE ----- FROM -----&amp;nbsp; MESSAGE&amp;nbsp;</description><pubDate>Fri, 19 Mar 2021 18:06:36 GMT</pubDate><dc:creator>lkeyes</dc:creator></item><item><title>RE: Parsing - variable spaces and field lengths</title><link>https://www.logviewplus.com/forum/post/959</link><description>I assumed that being a "parsing newbie" you might be new to the application.&amp;nbsp; Bad assumption - sorry.  :-) It sounds like the Parser Wizard has been mostly doing it's job then.&amp;nbsp; Good to know.&lt;br/&gt;&lt;br/&gt;Lines that do not match the expected pattern will still be available in the log file.&amp;nbsp; Usually, these lines will be shown as part of the message of the previous line.&amp;nbsp; In the case of a header, these will be show as a prefix on the log line.&amp;nbsp; This information will be available when searching and filtering, but it will not be shown in the grid.&lt;br/&gt;&lt;br/&gt;What to do about it depends on what you are trying to achieve.&amp;nbsp; If you want to remove the lines, you will need some kind of pre-processor which you can integration with a &lt;a href="https://www.logviewplus.com/docs/open_actions.html" id="if_insertedNode_1616177046155"&gt;Open Action&lt;/a&gt;.&amp;nbsp; If the lines need to be parsed, but using a different format, you can consider using a &lt;a href="https://www.logviewplus.com/docs/multi_patterns.html" id="if_insertedNode_1616177092385"&gt;multi-pattern&lt;/a&gt;.&lt;br/&gt;&lt;br/&gt;Hope that helps,&lt;br/&gt;&lt;br/&gt;Toby</description><pubDate>Fri, 19 Mar 2021 18:06:36 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item><item><title>RE: Parsing - variable spaces and field lengths</title><link>https://www.logviewplus.com/forum/post/958</link><description>So....in that case&amp;nbsp; where there are sections of a file that I want to parse.. what happens to the sections that don't fit the parsing?&amp;nbsp;&amp;nbsp;&lt;br/&gt;Wondering if there should be some pre-processing for the file before attempting to load into LogView and what I might use for that.... some kind of text manipulation script perhaps....maybe Powershell.&amp;nbsp; &amp;nbsp;(I'm on Windows).&amp;nbsp; &amp;nbsp; </description><pubDate>Fri, 19 Mar 2021 17:57:26 GMT</pubDate><dc:creator>lkeyes</dc:creator></item><item><title>RE: Parsing - variable spaces and field lengths</title><link>https://www.logviewplus.com/forum/post/957</link><description>Hi..thanks for the reply.&amp;nbsp; &amp;nbsp;I'm not evaluating... I've had LVP for awhile. I have the latest version.&amp;nbsp; Yes it turns out there is indeed a nyumber of lines at the top of the log file (should have checked that before).&amp;nbsp; &amp;nbsp;I tried stripping those out and have just the info that i'm attempting to parse.&amp;nbsp; &amp;nbsp;&lt;br/&gt;</description><pubDate>Fri, 19 Mar 2021 17:50:00 GMT</pubDate><dc:creator>lkeyes</dc:creator></item><item><title>RE: Parsing - variable spaces and field lengths</title><link>https://www.logviewplus.com/forum/post/956</link><description>Hi Ikeyes,&lt;br/&gt;&lt;br/&gt;Thanks for taking the time to evaluate LogViewPlus.&lt;br/&gt;&lt;br/&gt;When I run the ParserWizard for these log lines it suggests:&lt;br/&gt;&lt;strong&gt;%d{%H:mm:ss.ff} [%S{Column1}] %S{Column2}: %m%n&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Which is more than just the date and message.&amp;nbsp; What version of LogViewPlus are you using?&amp;nbsp; You could also be getting this result because your log file has additional lines which follow another format.&lt;br/&gt;&lt;br/&gt;I can rename the columns suggested to give:&lt;br/&gt;&lt;strong&gt;%d{%H:mm:ss.ff} [%S{Source}] %S{From}: %m%n&lt;br/&gt;&lt;br/&gt;&lt;img src="../Uploads/Images/5836e406-8531-4677-b201-3319.png" data-download-url="../Uploads/Images/7e41134c-de92-4877-b1ba-388b.png" id="if_insertedNode_1616175722873"&gt;&lt;br/&gt;&lt;br/&gt;&lt;/strong&gt;That seems pretty close to the parse you were looking for.&amp;nbsp; Please let me know if you need additional information.&lt;br/&gt;&lt;br/&gt;Hope that helps,&lt;br/&gt;&lt;br/&gt;Toby&lt;strong&gt;&lt;/strong&gt;</description><pubDate>Fri, 19 Mar 2021 17:45:10 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item></channel></rss>