LogViewPlus Support

Having issue with DateTime parsing

https://www.logviewplus.com/forum/Topic770.aspx

By kanstey - 29 Sep 2020

Hi,
I have starting using LogViewPlus recently and I am very pleased with it thus far.
However, I am having an issue with the parsing of time values from our logs.

I have created a parser mapping and was able to apply it to my log files (*.log) easily enough.
A sample line of our log file would typically look like the following (all on a single line)
2020-09-25 20:13:48,583550Z [1] INFO PackageManagementService Configuration: ConfigurationCache.MergeUpdatedPartsIntoPartsCache; Added part: DataAcquisitionMessaging to the cache

The parser mapping that I created seems to parse everything except that it only shows 3 digits of millisecond precision versus the 5 that our logger emits.  I have highlighted the timestamp portion of the sample log entry above.  All of our times are in UTC, hence the Z suffix on them.

I used a pattern parser in LogViewPlus and the parser arguments that I configured are as follows:
%d{yyyy-MM-dd HH:mm:ss,ffffffZ} %t %p %c %m%n

You can see that I included "5 letter fs" to indicate 5 digits of millisecond precision, which our machines are able to produce, in the parser configuration. 
However, when LogViewPlus produces the output in the UI, it displays only the first three digits of millisecond precision.
It is not rounding in any fashion based on the data, but rather is truncating the extra 2 digits.

Any help would be appreciated.

By LogViewPlus Support - 29 Sep 2020

Hi Kevin,

Thanks for taking the time to evaluate LogViewPlus.

It sounds like this is a display issue.  Have you tried modifying the time display format?
https://www.logviewplus.com/docs/date___time.html

Hope that helps,

Toby
By kanstey - 29 Sep 2020

I had just found that setting as your reply came in Smile
Thanks.

Appreciate the quick response.

By LogViewPlus Support - 29 Sep 2020

:-)  Glad that helped.  Please let me know if you have any further questions or issues.

Toby