Post Process FIelds


Author
Message
Brad Konia
Brad Konia
Forum Expert (806 reputation)Forum Expert (806 reputation)Forum Expert (806 reputation)Forum Expert (806 reputation)Forum Expert (806 reputation)Forum Expert (806 reputation)Forum Expert (806 reputation)Forum Expert (806 reputation)Forum Expert (806 reputation)
Group: Forum Members
Posts: 70, Visits: 111
Could you please provide the option to apply a regex replace to the message field (or any field really)?

For example, I'm working with a log file containing stack traces. Each log entry is a single line, but it contains many stack trace lines delimited by the pound character instead of the newline character. When viewing the message, I'd like to replace those pound characters with newline characters, to make it readable.

I'm sure this could be accomplished by creating a custom processor, but that's too involved for a simple search/replace operation. It would be much more convenient to have this type of functionality available in the UI. May I suggest adding a Search/Replace option to the context meny of each column.in the log viewer. When selecting this option, it would open a modal window containing a Search box and a Replacement box. You could enter your regex patterns in each box and this search/replace operation would be performed automaticallyi from then on.
Edited 4 Years Ago by SoBeGuy
Reply
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
Hi SoBe,

Thanks for the suggestion.  As mentioned, the only way to acheive this right now is through a custom post processor.  These are the simplest type of custom extension, but I can understand the hesitation to go this route.

What you want to do here makes sense, but I think a find / replace function in the main application is a little bit confusing.  Log files should not generally be edited and I think this is somethine you want to do every time the file is opened.  So, I think we should consider a pre-defined "Find Replace" post processor that comes built-in.  I could also see the need for other predefined post processors as well such as setting the pretty-print type, so I think this approach makes sense. 

The problem is that we will need a way to configure these processors in such a way that does not further complicate the parser configuration process.  I will need to have a think about this.

Thanks again for the suggestion!

Toby
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Login

Explore
Messages
Mentions
Search