Skip to content
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

cockroach.log tool or ability to create a less verbose log file #40306

Closed
glennfawcett opened this issue Aug 28, 2019 · 2 comments
Closed

cockroach.log tool or ability to create a less verbose log file #40306

glennfawcett opened this issue Aug 28, 2019 · 2 comments
Labels
C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

Comments

@glennfawcett
Copy link

glennfawcett commented Aug 28, 2019

Is your feature request related to a problem? Please describe.
The Cockroach cockroach.log is too verbose and hard to make diagnosis.

Describe the solution you'd like
Have there be two log files:

  1. Verbose log like there is today
  2. Terse log file which just reports significant informational events and errors that require the attention of a DBA or ADMIN.

Describe alternatives you've considered
Alternative would be to have a tool to parse and decipher the verbose log file.... for example:

crdblog -events -timeframe 1w
crdblog -errors -timeframe 1m
crdblog -alerts -timeframe 1m
crdblog -verbose -timeframe 1w

Additional context
This was requested by a customer but would be useful for all.

@awoods187
Copy link
Contributor

Have you looked at cockroach.stderr.log? To some degree this does this already and could be enhanced.

@awoods187 awoods187 added the C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) label Aug 30, 2019
@knz
Copy link
Contributor

knz commented Dec 14, 2020

Fixed by #57134 (and can be further exploited with a network log collector when #57170 is merged)

@knz knz closed this as completed Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Projects
None yet
Development

No branches or pull requests

3 participants