Features
Support
Purchase
Documentation
Download
Login
Register
Login
Register
Home
»
LogViewPlus Support
»
Configuration & Customization
»
Parse log with structured text and JSON
Parse log with structured text and JSON
Post Reply
Like
1
Parse log with structured text and JSON
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
remo0033
remo0033
posted 5 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 11,
Visits: 70
The log file below is a LogViewPlus log entry, with
pretty print JSON
enabled
The first line has the
DateTime
and
Level
, and is
structured text
Everything else is in
JSON
I'd like to "squeeze" more fields out of my log by not only using the Pattern Parser, but also the JSON parser.
Is this possible?
The pattern parser only gives me 3 fields:
Time, Level, and Message
.
I'd like to extract more fields, from the JSON section, such as
ProcessName
,
ProcessVersion
, and even JSON arrays such as
Variables
and
Arguments
.
Edited
5 Years Ago by
remo0033
Reply
Like
1
LogViewPlus Support
LogViewPlus Support
posted 5 Years Ago
ANSWER
Post Details
Share Post
Group: Moderators
Posts: 1.1K,
Visits: 3.7K
Hi Remo,
Apologies for the slow reply.
The only way to achieve this at the moment would be to use a custom parser:
https://www.logviewplus.com/docs/custom_parsers.html
We do have plans to allow a log entry message to be "re-parsed" to allow extra data. However, these plans are unlikely to be actioned this year.
Also, you may be interested in a new setting in LogViewPlus which allows you to change the default syntax highlighting for a log file by changing it for a single log entry. Under the "Syntax Highlight" settings, please see:
Hope that helps,
Toby
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search