-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
util/log: implement a json log entry parser #66684
Comments
I started filing a bug but discovered this one in the process so attaching my details as well. The one thing to note here is that this appears to be more severe than just affecting Describe the problem Use the following log config in
Start a server:
Generate a debug.zip
Inspect zip file for default log:
returns
Expected behavior The log file in the This is what the local log looks like:
Environment:
Additional context |
Regarding |
cc @thtruo for triage |
This bubbled up again. Based on a followup with @cameronnunez, the Server team suggests it's best for Obs Infra to take ownership here. This is part of the transition where Obs Infra owns logging - so I'm updating the team label for us to triage cc @dhartunian |
Previously, our logging code did not have the ability to recognize and decode JSON formatted log files. This led to problems when retrieving logs via API endpoints and when running commands such as `merge-logs` to process logs from debug.zip files. This commit adds support for the json, json-compact, json-fluent, and json-fluent-compact formats via one generalized JSON decoder. Resolves cockroachdb#66684 Release note (ops change, cli change): debug zip and merge-logs commands will now work with JSON formatted logs.
Previously, our logging code did not have the ability to recognize and decode JSON formatted log files. This led to problems when retrieving logs via API endpoints and when running commands such as `merge-logs` to process logs from debug.zip files. This commit adds support for the json, json-compact, json-fluent, and json-fluent-compact formats via one generalized JSON decoder. Resolves cockroachdb#66684 Release note (ops change, cli change): debug zip and merge-logs commands will now work with JSON formatted logs.
Previously, our logging code did not have the ability to recognize and decode JSON formatted log files. This led to problems when retrieving logs via API endpoints and when running commands such as `merge-logs` to process logs from debug.zip files. This commit adds support for the json, json-compact, json-fluent, and json-fluent-compact formats via one generalized JSON decoder. Resolves cockroachdb#66684 Release note (ops change, cli change): debug zip and merge-logs commands will now work with JSON formatted logs.
79356: log: add support for decoding JSON logs r=cameronnunez,abarganier a=dhartunian Previously, our logging code did not have the ability to recognize and decode JSON formatted log files. This led to problems when retrieving logs via API endpoints and when running commands such as `merge-logs` to process logs from debug.zip files. This commit adds support for the json, json-compact, json-fluent, and json-fluent-compact formats via one generalized JSON decoder. Resolves #66684 Release note (ops change, cli change): debug zip and merge-logs commands will now work with JSON formatted logs. Jira issue: CRDB-14742 81042: sql: support expression indexes in SHOW EXPERIMENTAL_FINGERPRINTS r=ajwerner a=stevendanna Previously, SHOW EXPERIMENTAL_FINGERPRINTS would fail with an error as it tried to directly select the 'crdb_internal_idx_expr' column. Now, we construct a selection expression using the computed expression. Note that the current implementation of experimental_fingerprints still doesn't work for inverted indexes. Tools like those outlined in #59549 would provide a more generic way forward. Release note (sql change): SHOW EXPERIMENTAL_FINGERPRINTS now supports table with expression indexes. 81326: ui: create TimeScaleDropdown wrapper for key vizualizer r=Santamaura a=Santamaura This patch introduces a new component to make the existing TimeScaleDropdown component compatible with the wip key vizualizer. Custom options and a new prop were provided to make this compatability work. Release note: None ![Screen Shot 2022-05-16 at 4 21 46 PM](https://user-images.githubusercontent.com/17861665/168680426-663f4b1d-d579-4ef5-8ac1-27cdc4cc6d9c.png) 81385: authors: add linaqiu22 to authors r=linaqiu22 a=linaqiu22 Co-authored-by: David Hartunian <[email protected]> Co-authored-by: Steven Danna <[email protected]> Co-authored-by: Santamaura <[email protected]> Co-authored-by: linaqiu22 <[email protected]>
Previously, our logging code did not have the ability to recognize and decode JSON formatted log files. This led to problems when retrieving logs via API endpoints and when running commands such as `merge-logs` to process logs from debug.zip files. This commit adds support for the json, json-compact, json-fluent, and json-fluent-compact formats via one generalized JSON decoder. Resolves #66684 Release note (ops change, cli change): debug zip and merge-logs commands will now work with JSON formatted logs.
manually reviewed and updated |
Previously, our logging code did not have the ability to recognize and decode JSON formatted log files. This led to problems when retrieving logs via API endpoints and when running commands such as `merge-logs` to process logs from debug.zip files. This commit adds support for the json, json-compact, json-fluent, and json-fluent-compact formats via one generalized JSON decoder. Resolves cockroachdb#66684 Release note (ops change, cli change): debug zip and merge-logs commands will now work with JSON formatted logs.
Previously, our logging code did not have the ability to recognize and decode JSON formatted log files. This led to problems when retrieving logs via API endpoints and when running commands such as `merge-logs` to process logs from debug.zip files. This commit adds support for the json, json-compact, json-fluent, and json-fluent-compact formats via one generalized JSON decoder. Resolves cockroachdb#66684 Release note (ops change, cli change): debug zip and merge-logs commands will now work with JSON formatted logs.
Previously, our logging code did not have the ability to recognize and decode JSON formatted log files. This led to problems when retrieving logs via API endpoints and when running commands such as `merge-logs` to process logs from debug.zip files. This commit adds support for the json, json-compact, json-fluent, and json-fluent-compact formats via one generalized JSON decoder. Resolves cockroachdb#66684 Release note (ops change, cli change): debug zip and merge-logs commands will now work with JSON formatted logs.
The json log format currently does not have a parser. Because of this, tech support tools like
debug zip
anddebug merge-logs
fail during the construction of a parser for a log that is json formatted. Customers have expressed a desire to switch from crdb log formats to json formatting to be compatible with third-party tools.We want to create a json log entry parser to remedy this, one that exists alongside the other parsers.
Jira issue: CRDB-8178
The text was updated successfully, but these errors were encountered: