You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm dealing with non-JSON log files that contain variable-width source file identifiers.
I would like to align log entries using line-format's min-width, max-width, align and overflow settings.
Describe the solution you'd like
I'd like to be able to use field names from the value object in the line-format's field field.
Describe alternatives you've considered
I saw that values have a rewriter field but I was unable to understand from the documentation how to achieve what I would like to using that field. Also, I'm not looking forward to re-implement abbrev logic when it is already available elsewhere.
Additional context
Example of the input logs:
poc 2024-09-20T07:01:20.111540Z INFO 1:Microsoft.Extensions.Hosting.Internal.ApplicationLifetime:0 Content root path: /foo/bar
poc 2024-09-20T07:01:20.111615Z DEBUG 1:Microsoft.Extensions.Hosting.Internal.Host:0 Hosting started
poc 2024-09-20T07:01:30.083486Z INFO 7:Foo.Bar.BarService:34 Worker running at: 09/20/2024 07:01:30 +00:00
Desired output:
poc 2024-09-20T07:01:20.111540Z INFO 1: M.E.H.I.ApplicationLifetime:0 Content root path: /foo/bar
poc 2024-09-20T07:01:20.111615Z DEBUG 1: M.E.H.I.Host:0 Hosting started
poc 2024-09-20T07:01:30.083486Z INFO 7: F.B.BarService:34 Worker running at: 09/20/2024 07:01:30 +00:00
Here is the custom format file that I'm working with
Is your feature request related to a problem? Please describe.
I'm dealing with non-JSON log files that contain variable-width source file identifiers.
I would like to align log entries using
line-format
'smin-width
,max-width
,align
andoverflow
settings.Describe the solution you'd like
I'd like to be able to use field names from the
value
object in theline-format
'sfield
field.Describe alternatives you've considered
I saw that values have a
rewriter
field but I was unable to understand from the documentation how to achieve what I would like to using that field. Also, I'm not looking forward to re-implementabbrev
logic when it is already available elsewhere.Additional context
Example of the input logs:
Desired output:
Here is the custom format file that I'm working with
The text was updated successfully, but these errors were encountered: