﻿<?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  » New and how to parse a message</title><generator>InstantForum 2017-1 Final</generator><description>LogViewPlus Support</description><link>https://www.logviewplus.com/forum/</link><webMaster>LogViewPlus Support</webMaster><lastBuildDate>Thu, 07 May 2026 06:58:59 GMT</lastBuildDate><ttl>20</ttl><item><title>New and how to parse a message</title><link>https://www.logviewplus.com/forum/post/1680</link><description>In our instrument logs, at various points we get a message like this:&lt;br/&gt;&lt;br/&gt;DATACONNECTION - HWBytes:15,301,020 BPS:0 EvtFmBytes:15,001 HWEvents:15,001 EQE:True EQC:0 ListenRun:True ProcessRun:True DS:1020 SA:0 FES:True Name:FinalEventSeen&lt;br/&gt;&lt;br/&gt;As shown in your video I would like to use SQL to pull out or even line graph the "EvtFmBytes:" and "HWEvents:" from these lines.&lt;br/&gt;&lt;br/&gt;The automatic parser didn't do anything.&lt;br/&gt;&lt;br/&gt;I tried the pattern parser but I am not sure it is dealing with the commas in the numbers correctly.&amp;nbsp; &amp;nbsp;It seems to think it is a string and instead of finding similar columns it is just matching the one exact string.&lt;br/&gt;&lt;br/&gt;We also have these lines:&lt;br/&gt;SystemHealthTriggerSnapshot - Trig:AverageCpuLoad AverageCpuLoad - CPU:54% Speed:0GHz RAM:T-19.23GB/P-1.36GB/O-17.87GB Client:1%/424.93MB Server:48%/971.44MB Disk:B-235.53GB/P-235.53GB Net:A02919AAC2B0:R-8.03KB/S-1.51KB,005056C00001:R-0B/S-0B,005056C00008:R-0B/S-0B,8038FBA68B5A:R-0B/S-0B,8038FBA68B5E:R-0B/S-0B LoopAvg:206 LoopMax:2235 LoopMin:10&lt;br/&gt;&lt;br/&gt;In a similar fashion I'd like to pull out CPU,&amp;nbsp; Data out of the "Server:" area which is CPU%/RAM used.&lt;br/&gt;&lt;br/&gt;Some help to get started would be very much appreciated.&lt;br/&gt;</description><pubDate>Wed, 22 Feb 2023 08:42:22 GMT</pubDate><dc:creator>MRH</dc:creator></item><item><title>RE: New and how to parse a message</title><link>https://www.logviewplus.com/forum/post/1701</link><description>Glad that helped - thanks for letting me know.&lt;br/&gt;&lt;br/&gt;Just a quick update to let you know that we have now released &lt;a href="https://www.logviewplus.com/download.html" id="if_insertedNode_1677055261793"&gt;LogViewPlus 3.0.11&lt;/a&gt; as a BETA release.&amp;nbsp; This release resolves the issue with the 'BIGFOOTDATACONNECTION message' discussed above.&amp;nbsp;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Hope that helps,&lt;br/&gt;&lt;br/&gt;Toby</description><pubDate>Wed, 22 Feb 2023 08:42:22 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item><item><title>RE: New and how to parse a message</title><link>https://www.logviewplus.com/forum/post/1688</link><description>thank you so much Toby,&lt;br/&gt;&lt;br/&gt;That give me a place to start.</description><pubDate>Tue, 14 Feb 2023 13:42:38 GMT</pubDate><dc:creator>MRH</dc:creator></item><item><title>RE: New and how to parse a message</title><link>https://www.logviewplus.com/forum/post/1684</link><description>Thanks for the sample log entries.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;If I put these log entries together, LogViewPlus opens the file with a default parse of:&amp;nbsp;&lt;br/&gt;[code]%d{yyyy-MM-dd %H:mm:ss.ffff}|%S{Column 2}|%p|%c|%S{Column 5}|%t|%m[/code]&lt;br/&gt;This is using the DsvParser:&lt;br/&gt;&lt;img src="../Uploads/Images/31badb56-a196-4830-956c-9af1.png" id="if_insertedNode_1676345290305"&gt;&lt;br/&gt;&lt;br/&gt;That looks good to me and it leaves us with messages similar to the ones you defined in your original post.&amp;nbsp; The next step is to &lt;a href="https://www.logviewplus.com/docs/parse_a_message.html" id="if_insertedNode_1676345418134"&gt;parse the messages&lt;/a&gt; individually.&lt;br/&gt;&lt;br/&gt;The first message can be parsed with:&lt;br/&gt;[code]BIGFOOTDATACONNECTION - %S EvtFmBytes:%s{EvtFmBytes} HWEvents:%s{HWEvents} %S[/code]&lt;br/&gt;&lt;img src="../Uploads/Images/933e05f4-10c3-4cea-a84f-2235.png" data-download-url="../Uploads/Images/3ec0823e-8cd1-43a0-b81d-364f.png" id="if_insertedNode_1676345592291"&gt;&lt;br/&gt;&lt;br/&gt;Breaking this down...&lt;br/&gt;&lt;strong&gt;BIGFOOTDATACONNECTION &lt;/strong&gt;- quickly identifies which messages I am looking for (this helps improve performance).&lt;br/&gt;&lt;strong&gt;%S&lt;/strong&gt; - reads and ignores data until it finds...&lt;br/&gt;&lt;strong&gt;EvtFmBytes:%s{EvtFmBytes}&lt;/strong&gt; - our &lt;a href="https://www.logviewplus.com/docs/_s_and__s_specifiers.html" id="if_insertedNode_1676346085201"&gt;first column&lt;/a&gt;.&lt;br/&gt;&lt;strong&gt;HWEvents:%s{HWEvents}&lt;/strong&gt; - our second column.&lt;br/&gt;&lt;strong&gt;%S&lt;/strong&gt; - finally, we read until the end of the message.&lt;br/&gt;&lt;br/&gt;TIP: When defining the &lt;strong&gt;%S&lt;/strong&gt; data to ignore, I just highlighted the data to ignore and selected 'Mark as Custom' without supplying a column name.&amp;nbsp; The named columns were also defined using the&amp;nbsp;'Mark as Custom' command.&lt;br/&gt;&lt;br/&gt;The second message uses the format:[code]SystemHealthTriggerSnapshot - %S CPU:%s{CPU} %S Client:%S{ClientCPU}/%s{ClientMem}MB Server:%S{ServerCPU}/%s{ServerMem}MB %S[/code]&lt;br/&gt;The parsing technique here is very similar to the first message, so hopefully the configuration makes sense.&lt;br/&gt;&lt;br/&gt;So, that's how to parse the messages, the next step is to query them with SQL.&amp;nbsp; Here, I ran into a problem with the BIGFOOTDATACONNECTION message.&amp;nbsp; For some reason, LogViewPlus doesn't like the data values.&amp;nbsp; I think it is struggling to convert the number format.&amp;nbsp; This is a bug which we will be sure to address in the next release.&amp;nbsp; Apologies for this - SQL parsing is new.&lt;br/&gt;&lt;br/&gt;The second message can be queried successfully with:&lt;br/&gt;[code]SELECT CPU, ClientCPU, ClientMem, ServerCPU, ServerMem FROM CurrentView ORDER BY Timestamp DESC[/code]&lt;br/&gt;When querying, note that you must select a view which provides the necessary columns.&amp;nbsp; I have duplicated your data in my test log file, so the end result is something like:&lt;br/&gt;&lt;img src="../Uploads/Images/7fd7606e-be46-49bf-90b2-1d1a.png" data-download-url="../Uploads/Images/7c88017e-1a2c-4e96-ad2a-89ed.png" id="if_insertedNode_1676347028464"&gt;&lt;br/&gt;&lt;br/&gt;Hope that helps,&lt;br/&gt;&lt;br/&gt;Toby&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 14 Feb 2023 04:04:15 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item><item><title>RE: New and how to parse a message</title><link>https://www.logviewplus.com/forum/post/1682</link><description>Toby, I omitted the timestamp.&amp;nbsp; That is just the message part.&amp;nbsp; The full entries look like this&lt;br/&gt;&lt;br/&gt;2023-02-13 08:07:59.2512|2251|Trace|BigfootServer|NoUser|LogStatus-378|BIGFOOTDATACONNECTION - HWBytes:15,301,020 BPS:0 EvtFmBytes:15,001 HWEvents:15,001 EQE:True EQC:0 ListenRun:True ProcessRun:True DS:1020 SA:0 FES:True Name:StopAcquisitionProcess - Before unload sample&lt;br/&gt;&lt;br/&gt;Here is the other one:&lt;br/&gt;&lt;br/&gt;2023-02-13 15:20:29.4822|3878|Trace|BigfootServer|NoUser|LogSnapshot-666|SystemHealthTriggerSnapshot - Trig:AverageCpuLoad AverageCpuLoad - CPU:61% Speed:0GHz RAM:T-19.13GB/P-948.88MB/O-18.2GB Client:0%/333.06MB Server:47%/615.83MB Disk:B-235.52GB/P-235.52GB Net:A02919AAC2B0:R-52.76KB/S-4.84KB,005056C00001:R-0B/S-0B,005056C00008:R-0B/S-0B,8038FBA68B5A:R-0B/S-0B,8038FBA68B5E:R-0B/S-0B LoopAvg:212 LoopMax:2235 LoopMin:10&lt;br/&gt;&lt;br/&gt;In the first case I would love to be able to graph as you do in your short video example the "EvtFmBytes:" data and the "HWEvents" data&lt;br/&gt;&lt;br/&gt;In the second one being able to pull out CPU would be nice.&amp;nbsp; But also there are two other sections of interest:&lt;br/&gt;&lt;br/&gt;Server:47%/615.83MB&lt;br/&gt;and&lt;br/&gt;Client:0%/333.06MB&lt;br/&gt;&lt;br/&gt;In the ideal world it would be nice to pull from both of these the CPU% which is the first number before the / and the second number after the slash which is the RAM used.&lt;br/&gt;&lt;br/&gt;mark</description><pubDate>Mon, 13 Feb 2023 22:51:40 GMT</pubDate><dc:creator>MRH</dc:creator></item><item><title>RE: New and how to parse a message</title><link>https://www.logviewplus.com/forum/post/1681</link><description>LogViewPlus views log entries as &lt;a href="https://www.logviewplus.com/docs/what_is_a_log_file_.html" id="if_insertedNode_1676326523093"&gt;time series data&lt;/a&gt;.&amp;nbsp; In this case, your log entries do not appear to have a timestamp and therefore cannot be parsed by LogViewPlus.&lt;br/&gt;&lt;br/&gt;If you are able to add a timestamp to the log entries, LogViewPlus should be able to parse them.&amp;nbsp; In this case, the trick is to &lt;a href="https://www.logviewplus.com/docs/parse_a_log_file.html" id="if_insertedNode_1676326725897"&gt;parse the log entries&lt;/a&gt; separately from the &lt;a href="https://www.logviewplus.com/docs/parse_a_message.html" id="if_insertedNode_1676326745675"&gt;log message&lt;/a&gt;.&amp;nbsp; It looks like most of the sample log entries provided would be treated as a log message - &lt;a href="https://www.logviewplus.com/docs/pattern_parser.html" id="if_insertedNode_1676326934729"&gt;%m&lt;/a&gt;.&amp;nbsp; In other words, there does not appear to be much shared metadata between the two samples.&lt;br/&gt;&lt;br/&gt;Hope that helps,&lt;br/&gt;&lt;br/&gt;Toby</description><pubDate>Mon, 13 Feb 2023 22:23:00 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item></channel></rss>