Extend Custom Filters API


Author
Message
AndreasP
AndreasP
I'm hooked (553 reputation)I'm hooked (553 reputation)I'm hooked (553 reputation)I'm hooked (553 reputation)I'm hooked (553 reputation)I'm hooked (553 reputation)I'm hooked (553 reputation)I'm hooked (553 reputation)I'm hooked (553 reputation)
Group: Forum Members
Posts: 52, Visits: 229
Dear Toby,

when analyzing complex log files or problems I sometimes would like to be able to make very special evaluations like the following.

For example I have a list of 50 log files and I want to see the first 10 and last 10 log entries of every log file.

Or another example is, that our log files contain a list of hardware components in our device including serial numbers. And for a list of 50 consecutive log files I would like to see if and where hardware changes between log files have occurred.

Both cases I think could be realized by a custom filter on a merged log file list. However the current ILogFilter interface only allows to see a single log file entry. For the above cases I would have to also check other, neighboring, log file entries (to find the position of the log entries in the log files or the find the hardware components list of the preceding log file).

Do you think such an extension would be feasible?

Kind Regards
Andreas
Replies
AndreasP
AndreasP
I'm hooked (553 reputation)I'm hooked (553 reputation)I'm hooked (553 reputation)I'm hooked (553 reputation)I'm hooked (553 reputation)I'm hooked (553 reputation)I'm hooked (553 reputation)I'm hooked (553 reputation)I'm hooked (553 reputation)
Group: Forum Members
Posts: 52, Visits: 229
Hi Toby,

I just had a look at the current version and adapted my filters. Everything seems to be working as expected so far. Performance is also improved, now taking about 15s for my 1.7Mio entries merged log example, which I think is sufficient. Thanks for your support.

At the new CustomConfiguration interfaces I also had a quick look, but didn't implement one yet. I was however a little bit surprised to find that they are opened by a new "Configure" button in the "Create Custom Filter" dialog. I somehow expected that the custom configuration dialogs would replace the default dialog when present. So for changing settings I have to click twice to enter the configuration dialog. Probably will get used to it.

Two other things I noticed:
a) The copy instruction in the sample projects should include "quotation marks" to also work for cases with space in the folder names.
b) When using my TopBottom Filter I noticed something that I didn't observe before. Our log files are limited in size, so we have the case that some log entries will be written to the end of the previous log file and the next ones to the beginning of the next log file. I then merge all relevant log files to see one big log file with all data. With the current Release I noticed, that when the log files that at the end and the beginning have the same time-stamp, the order of the log files is not preserved. I don't know if this is to be expected, but did not observe before, or if this is maybe a bug of the new version. For my use case it is a little bit unexpected.

Thanks
Andreas
LogViewPlus Support
LogViewPlus Support
Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)
Group: Moderators
Posts: 1.3K, Visits: 4.4K
Hi Andreas,

Glad to hear that things are working a little bit more smoothly now.

Thanks for pointing out the issue with spaces in file name paths.  I have updated the sample projects to use quotes as suggested.

I agree that the CustomConfiguration process is a little bit clunky for the end user.  However, completely replacing the existing configuration screens would greatly increase the complexity of the configuration implementation.  Also, a lot of this implementation would end up being the same for most users (name pattern validation, etc...).  For now, I wanted to focus on API simplicity.

> log files that at the end and the beginning have the same time-stamp, the order of the log files is not preserved

When log files are merged, the log entries are sorted by timestamp.  In the case where two log entries have the same timestamp, LogViewPlus has no way of knowing what the order should be.  While I understand that some data is lost - I think this is the correct behavior.  I am happy to explore this issue further, but it may be best to do so on a separate thread.

Thanks again,

Toby
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
AndreasP - 6 Years Ago
LogViewPlus Support - 6 Years Ago
AndreasP - 6 Years Ago
LogViewPlus Support - 6 Years Ago
AndreasP - 6 Years Ago
                         The Previous / Next methods are off of the LogEntry - so there...
LogViewPlus Support - 6 Years Ago
                             Hi Toby, I think I completely misunderstood your post about the beta...
AndreasP - 6 Years Ago
                                 Hi Andreas, The latest LogViewPlus BETA v2.3.7 has updated the API as...
LogViewPlus Support - 6 Years Ago
                                     Hi Toby, I implemented a first filter and tested the new API. It took...
AndreasP - 6 Years Ago
                                         Hi Andreas, This is a difficult one for me to debug without the...
LogViewPlus Support - 6 Years Ago
                                             Hi Toby, first one correction from my side. The filtered view only...
AndreasP - 6 Years Ago
                                                 I know what the problems is. Unfortunately, I have once again missed...
LogViewPlus Support - 6 Years Ago
                                                     Thanks for the explanation. Now I understand. Another thing that came...
AndreasP - 6 Years Ago
                                                         One step ahead of you on that one. :-)...
LogViewPlus Support - 6 Years Ago
                                                             Hi Toby, I implemented another filter now, that works on larger logs...
AndreasP - 6 Years Ago
                                                                 I will take a look and see what we can do for the next release. I...
LogViewPlus Support - 6 Years Ago
                                                                     Ok. Thanks. Btw, here is the code of this second filter. The intention...
AndreasP - 6 Years Ago
                                                                         Hi Andreas, In the latest BETA release of LogViewPlus (v2.3.8), I...
LogViewPlus Support - 6 Years Ago
                                                                             Hi Toby, I just had a look at the current version and adapted my...
AndreasP - 6 Years Ago
                                                                                 Hi Andreas, Glad to hear that things are working a little bit more...
LogViewPlus Support - 6 Years Ago

Similar Topics

Login

Explore
Messages
Mentions
Search