You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "F64116045 (via GitHub)" <gi...@apache.org> on 2026/07/28 00:56:59 UTC
[PR] HDDS-15954. Document ozone daemonlog command [ozone]
F64116045 opened a new pull request, #10882:
URL: https://github.com/apache/ozone/pull/10882
## What changes were proposed in this pull request?
This pull request documents the existing `ozone daemonlog` command in the Ozone logging tools documentation. It explains how to get and set runtime log levels for Ozone daemon loggers through their HTTP endpoints, and adds examples for checking, increasing, and resetting a logger level.
It also adds `daemonlog` to the tools overview page so users can discover the command from the CLI tools list.
Generated-by: OpenAI Codex (GPT-5)
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-15954
## How was this patch tested?
```bash
git diff --check
./hadoop-ozone/dev-support/checks/docs.sh
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-15954. Document ozone daemonlog command [ozone]
Posted by "sravani-revuri (via GitHub)" <gi...@apache.org>.
sravani-revuri commented on PR #10882:
URL: https://github.com/apache/ozone/pull/10882#issuecomment-5103460996
should these docs go in ozone-site also? I think the right files would be 01-application-logs.md and 11-tools/README.mdx
cc: @jojochuang
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-15954. Document ozone daemonlog command [ozone]
Posted by "sreejasahithi (via GitHub)" <gi...@apache.org>.
sreejasahithi commented on code in PR #10882:
URL: https://github.com/apache/ozone/pull/10882#discussion_r3662808425
##########
hadoop-hdds/docs/content/tools/LogsInOzone.md:
##########
@@ -93,6 +93,37 @@ rootLogger.level = debug
After saving the file and restarting the service, the service will start logging more detailed debug information.
+### Changing Service Log Levels at Runtime
+
+Use `ozone daemonlog` to inspect or change the log level of a running Ozone daemon without restarting it. The command talks to the daemon's HTTP endpoint and is useful when you need temporary debug logging while troubleshooting a live service.
+
+```bash
+ozone daemonlog -getlevel <host:port> <logger-name> [-protocol http|https]
+ozone daemonlog -setlevel <host:port> <logger-name> <level> [-protocol http|https]
+```
+
+The `<host:port>` value is the daemon HTTP address. For example, the default HTTP ports are `9874` for Ozone Manager, `9876` for Storage Container Manager, `9882` for Datanode, `9878` for S3 Gateway, and `9888` for Recon.
+
Review Comment:
Here it states 9878 for S3 Gateway, but daemonlog talks to the /logLevel servlet. On S3G, that servlet is on the web admin server, not the S3 API port.
The log-level endpoint is on the web admin port 19878 (S3GatewayWebAdminServer), config key ozone.s3g.webadmin.http-address.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-15954. Document ozone daemonlog command [ozone]
Posted by "F64116045 (via GitHub)" <gi...@apache.org>.
F64116045 commented on code in PR #10882:
URL: https://github.com/apache/ozone/pull/10882#discussion_r3663026355
##########
hadoop-hdds/docs/content/tools/LogsInOzone.md:
##########
@@ -93,6 +93,37 @@ rootLogger.level = debug
After saving the file and restarting the service, the service will start logging more detailed debug information.
+### Changing Service Log Levels at Runtime
+
+Use `ozone daemonlog` to inspect or change the log level of a running Ozone daemon without restarting it. The command talks to the daemon's HTTP endpoint and is useful when you need temporary debug logging while troubleshooting a live service.
+
+```bash
+ozone daemonlog -getlevel <host:port> <logger-name> [-protocol http|https]
+ozone daemonlog -setlevel <host:port> <logger-name> <level> [-protocol http|https]
+```
+
+The `<host:port>` value is the daemon HTTP address. For example, the default HTTP ports are `9874` for Ozone Manager, `9876` for Storage Container Manager, `9882` for Datanode, `9878` for S3 Gateway, and `9888` for Recon.
+
Review Comment:
Thanks for catching this. I updated the S3 Gateway entry to use the web admin HTTP address (`ozone.s3g.webadmin.http-address`, default `19878`) instead of the S3 API port (`9878`).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-15954. Document ozone daemonlog command [ozone]
Posted by "F64116045 (via GitHub)" <gi...@apache.org>.
F64116045 closed pull request #10882: HDDS-15954. Document ozone daemonlog command
URL: https://github.com/apache/ozone/pull/10882
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-15954. Document ozone daemonlog command [ozone]
Posted by "sreejasahithi (via GitHub)" <gi...@apache.org>.
sreejasahithi commented on PR #10882:
URL: https://github.com/apache/ozone/pull/10882#issuecomment-5108747548
> @F64116045 could you please close this PR and make these changes in [ozone-site](https://github.com/apache/ozone-site)?
Yes, @F64116045 please raise the PR in ozone-site, and make the respective changes there.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-15954. Document ozone daemonlog command [ozone]
Posted by "F64116045 (via GitHub)" <gi...@apache.org>.
F64116045 commented on PR #10882:
URL: https://github.com/apache/ozone/pull/10882#issuecomment-5110589208
Thanks for clarifying. I’ll close this PR and move the changes to apache/ozone-site.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-15954. Document ozone daemonlog command [ozone]
Posted by "jojochuang (via GitHub)" <gi...@apache.org>.
jojochuang commented on PR #10882:
URL: https://github.com/apache/ozone/pull/10882#issuecomment-5108417707
Yes we will be removing the docs under the apache/ozone repo soon. The new doc site is rendered from apache/ozone-site repo.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org