-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
log: create crdb-v2 log entry parser
The crdb-v2 log file format is not recognized by some tools like debug merge-log. This is makes it difficult/impossible to merge log files properly. This patch creates a new parser and integrates it into debug merge-log. Release note (cli change): the tool debug merge-log is now integrated with a crdb-v2 log entry parser.
- Loading branch information
1 parent
b031988
commit af56499
Showing
4 changed files
with
235 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
subtest single_line_unstructured | ||
|
||
line | ||
I210116 21:49:17.073282 14 server/node.go:464 ⋮ [-] 23 started with engine type ‹2› | ||
---- | ||
# Original configuration: | ||
# I210116 21:49:17.073282 14 server/node.go:464 ⋮ [-] 23 started with engine type ‹2› | ||
# | ||
# Interpreted configuration: | ||
# SEVERITY TIME GOROUTINE FILE LINE MESSAGE TAGS COUNTER CHANNEL | ||
INFO 1610833757073282000 14 server/node.go 464 started with engine type 2 - 23 DEV | ||
|
||
line | ||
I210116 21:49:17.073282 14 (gostd) server/node.go:464 ⋮ [-] 23 started with engine type ‹2› | ||
---- | ||
# Original configuration: | ||
# I210116 21:49:17.073282 14 (gostd) server/node.go:464 ⋮ [-] 23 started with engine type ‹2› | ||
# | ||
# Interpreted configuration: | ||
# SEVERITY TIME GOROUTINE FILE LINE MESSAGE TAGS COUNTER CHANNEL | ||
INFO 1610833757073282000 14 server/node.go 464 started with engine type 2 - 23 DEV | ||
|
||
subtest end | ||
|
||
subtest single_line_structured | ||
|
||
line | ||
I210116 21:49:17.080713 14 1@util/log/event_log.go:32 ⋮ [-] 32 ={"Timestamp":1610833757080706620,"EventType":"node_restart"} | ||
---- | ||
# Original configuration: | ||
# I210116 21:49:17.080713 14 1@util/log/event_log.go:32 ⋮ [-] 32 ={"Timestamp":1610833757080706620,"EventType":"node_restart"} | ||
# | ||
# Interpreted configuration: | ||
# SEVERITY TIME GOROUTINE FILE LINE MESSAGE TAGS COUNTER CHANNEL | ||
INFO 1610833757080713000 14 util/log/event_log.go 32 ={"Timestamp":1610833757080706620,"EventType":"node_restart"} - 32 OPS | ||
|
||
subtest end | ||
|
||
|