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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to