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: [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