-
Notifications
You must be signed in to change notification settings - Fork 182
Fix logging page issues #4021
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
base: release/8.0
Are you sure you want to change the base?
Fix logging page issues #4021
Conversation
* Heavy edits to bring writing up to standards. * Lots of re-architecting of content to make it flow more reasonably. * Corrected numerous errors. * Implemented some feedback from questions about what we should actually say about changing logging levels/log file location.
hyunjuV
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
Comprehensive and detailed.
(Noted a typo -- same one in 2 places.)
|
|
||
| If neither of these options meet your needs, you can change the log location by following these steps: | ||
|
|
||
| . Log into a node as the as `root` or the user who owns the Couchbase Server files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo - remove "as the":
. Log into a node as the as root or the user who owns the Couchbase Server files.
Instead:
. Log into a node as root or the user who owns the Couchbase Server files.
|
|
||
| [#redacting-log-files-outside-the-cluster] | ||
| == Redacting Log Files Outside the Cluster | ||
| . Log into a node as the as `root` or the user who owns the Couchbase Server files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same Typo - remove "as the":
. Log into a node as the as root or the user who owns the Couchbase Server files.
Instead:
. Log into a node as root or the user who owns the Couchbase Server files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from me too.
| Also, the Couchbase Server upgrade process can overwrite the `static_config` file, losing any of your modifications. | ||
|
|
||
| The Couchbase Server upgrade process can overwrite the `static_config` file, losing any of your modifications. | ||
| If you change the log location, you may need to reapply your changes after an upgrade. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this text.
|
|
||
|
|
||
| [#changing-log-file-locations] | ||
| === Changing Log File Locations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Gary, this looks good.
…roved by stakeholders. * Also fixed a typo. * Changed "most" to "some" when discussing which logs files use the sensitive data tags. Not sure how many do and how many do not. * Few other minor grammar fixups
* DOC-12634 Fixed prunage units from minutes to seconds * further updates on units and min/max/defaults * updated manage page
…-Statistics (#3978) * Updated rest-statistics-multiple.adoc https://jira.issues.couchbase.com/browse/DOC-13126 Updated "=" | "!=" | "=~" | "~=" / “=, !=, =~, or ~=" to =, !=, =~, !~, any, or not_any. * Updated rest-statistics-multiple.adoc added a period at the end of line 65
Add unit to query timeout setting
Add alias for deleted N1QL Application Continuity page
Added port 9124 to encrypted ports under "node-to-node" at https://docs.couchbase.com/server/current/install/install-ports.html#ports-listed-by-communication-path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
rao-shwe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor edits for double spaces and double hyphens.
The rest LGTM! 👍
|
|
||
| This brings up the *Collect Information* screen: | ||
| | `analytics_dcpdebug` | ||
| | DCP-specific debugging Information about the Analytics Service. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | DCP-specific debugging Information about the Analytics Service. | |
| | DCP-specific debugging information about the Analytics Service. |
| [#collect_info] | ||
| image::manage-logging/collectInfo.png[,248,align=left] | ||
| | `analytics_cbas_debug` | ||
| | Debugging Information about the Analytics Service. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | Debugging Information about the Analytics Service. | |
| | Debugging information about the Analytics Service. |
| image::manage-logging/getClusterSummaryLink.png[,260,align=left] | ||
| | `prometheus` | ||
| | Log for the instance of https://prometheus.io[Prometheus^] that runs on the current node, supporting the gathering and management of Couchbase Server metrics. | ||
| See the xref:metrics-reference:metrics-reference.adoc[Metrics Reference] for more Information about metrics. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| See the xref:metrics-reference:metrics-reference.adoc[Metrics Reference] for more Information about metrics. | |
| See the xref:metrics-reference:metrics-reference.adoc[Metrics Reference] for more information about metrics. |
|
|
||
| [#partial_redaction_selection] | ||
| image::manage-logging/partialRedactionSelection.png[,682,align=left] | ||
| NOTE: Couchbase Server upgrades can overwrite `static_config`, losing any of your modifications. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| NOTE: Couchbase Server upgrades can overwrite `static_config`, losing any of your modifications. | |
| NOTE: Couchbase Server upgrades can overwrite `static_config`, losing any of your modifications. |
|
|
||
| | `debug` | ||
| | Debug-level troubleshooting for the Cluster Manager. | ||
| NOTE: Couchbase Server upgrades can overwrite `static_config`, losing any modifications you have made. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| NOTE: Couchbase Server upgrades can overwrite `static_config`, losing any modifications you have made. | |
| NOTE: Couchbase Server upgrades can overwrite `static_config`, losing any modifications you have made. |
| | `analytics_access` | ||
| | Information on access attempts made to the REST/HTTP port of the Analytics Service. | ||
| . Choose whether you want to upload the collected logs to Couchbase Support. | ||
| See <<uploading_log_files>> for more information about uploading log files to Couchbase Support. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| See <<uploading_log_files>> for more information about uploading log files to Couchbase Support. | |
| See <<uploading_log_files>> for more information about uploading log files to Couchbase Support. |
|
|
||
| During the collection process, Couchbase Server scans the log files for private data. | ||
| In some log files, it marks sensitive data with the tags `<ud>` and `</ud>`. | ||
| When you select the *Partial Redaction* option on the *Collect Information* tab or use the `--log-redaction-level=partial` argument with the `cbcollect_info` command, Couchbase Server redacts the marked data in the collected log files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| When you select the *Partial Redaction* option on the *Collect Information* tab or use the `--log-redaction-level=partial` argument with the `cbcollect_info` command, Couchbase Server redacts the marked data in the collected log files. | |
| When you select the *Partial Redaction* option on the *Collect Information* tab or use the `--log-redaction-level=partial` argument with the `cbcollect_info` command, Couchbase Server redacts the marked data in the collected log files. |
|
|
||
| When redacting, Couchbase Server replaces the content of the `<ud>` and `</ud>` tags with a SHA-1 hashed version of the data. | ||
|
|
||
| For example, the following fragment from the `debug.log` displays two pieces of private data--a Couchbase username and a document ID: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| For example, the following fragment from the `debug.log` displays two pieces of private data--a Couchbase username and a document ID: | |
| For example, the following fragment from the `debug.log` displays two pieces of private data, a Couchbase username and a document ID: |
|
|
||
| To change the location, proceed as follows: | ||
| For example, the `http_access.log` (stored in the zip with the filename `ns_server.http_access.log`) contains HTTP requests that include the username making a request as well as sensitive data in URL parameters. | ||
| The following log file fragment displays private data--the Administrator's username and the username of a user account that the Administrator is creating: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| The following log file fragment displays private data--the Administrator's username and the username of a user account that the Administrator is creating: | |
| The following log file fragment displays private data, the Administrator's username and the username of a user account that the Administrator is creating: |
| (Assuming you installed Couchbase Server in the default location.) | ||
| |=== | ||
|
|
||
| You can also view a summary of log events in Couchbase Server Web Console by clicking *Logs*. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| You can also view a summary of log events in Couchbase Server Web Console by clicking *Logs*. | |
| You can also view a summary of log events in Couchbase Server Web Console by clicking *Logs*. |
This PR addresses multiple issues in the Manage Logging page:
static_configto change logging levels, but state that they should only adjust the internal logging levels under support supervision.static_config. Hopefully, these will convince most people not to change the logging location unless they have no other option.<ud>...</ud>tags.Also fixed some errors that weren't flagged by bugs:
Preview URL:
https://preview.docs-test.couchbase.com/docs-server-DOC-13610-Fix-documentation-regarding-default-logging-level-in-Couchbase-Server/server/current/manage/manage-logging/manage-logging.html
You will need the Docs Team credentials on Confluence.
NOTE: given the amount of editing in this page, your best bet is to review the preview page instead of trying to make sense of the git diff.