Deduplicate log entries


Author
Message
SimonD
SimonD
New Member (30 reputation)New Member (30 reputation)New Member (30 reputation)New Member (30 reputation)New Member (30 reputation)New Member (30 reputation)New Member (30 reputation)New Member (30 reputation)New Member (30 reputation)
Group: Forum Members
Posts: 3, Visits: 10
Hi Toby,

I'd like to be able to detect and hide consecutive identical log entries (or sequences of log entries), while adding the information how many times the entry or sequence of entries was repeated.

I achieved the duplicate detection and filtering through a custom filter implementation, but couldn't find a good way to add the number of repetitions anywhere.
Keeping a reference to the first LogEntry instance of the duplication series and prepending the number of duplications to the message worked as long as I was in the filter, but the modified message persisted even after removing the filter and generally this doesn't seem like a clean solution.

Is there some better way to achieve this, and if not, could you add it to a future version?

Thanks,
Simon
Replies
SimonD
SimonD
New Member (30 reputation)New Member (30 reputation)New Member (30 reputation)New Member (30 reputation)New Member (30 reputation)New Member (30 reputation)New Member (30 reputation)New Member (30 reputation)New Member (30 reputation)
Group: Forum Members
Posts: 3, Visits: 10
I actually have a custom parser for these logs already, but haven't considered using it for the deduplication yet.
I'll give it a try, thanks!
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.2K, Visits: 4.3K
No problem Simon.  Hope that helps,

Toby
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Login

Explore
Messages
Mentions
Search