Gargi-jais11 commented on code in PR #320:
URL: https://github.com/apache/ozone-site/pull/320#discussion_r2772315997


##########
docs/05-administrator-guide/02-configuration/02-logging/01-application-logs.md:
##########
@@ -16,6 +16,12 @@ By default, log files are stored in the `$OZONE_LOG_DIR` 
directory, which is usu
 
 The logging behavior for each service is controlled by its `log4j.properties` 
file, located in the service’s `$OZONE_CONF_DIR` directory, usually 
`etc/hadoop`. You can modify this file to change the log level, logging 
outputs, and other logging parameters.
 
+## Datanode Container Logs
+
+In addition to the main service log, Datanode also generates 
container-specific logs that track container replica-level events. These logs 
record brief messages about container state changes (open, closing, closed, 
unhealthy), replication events, reconstruction, reconciliation, container 
moves, and other container lifecycle events.
+
+Container logs are configured via `dn-container-log4j2.properties` and are 
stored as `dn-container-${hostName}.log` in the `$OZONE_LOG_DIR` directory.
+

Review Comment:
   Let's add some example for this
   ### Example : 
   ```
   2026-02-01 16:08:59,261 | INFO  | ID=2 | Index=0 | BCSID=0 | State=OPEN | 
Volume=/hadoop-ozone/datanode/data/hdds | DataChecksum=0 |
   2026-02-03 12:49:36,139 | INFO  | ID=2 | Index=0 | BCSID=1172 | 
State=CLOSING | Volume=/hadoop-ozone/datanode/data/hdds | DataChecksum=0 |
   2026-02-03 12:49:37,443 | INFO  | ID=2 | Index=0 | BCSID=1172 | State=CLOSED 
| Volume=/hadoop-ozone/datanode/data/hdds | DataChecksum=4117a7a2 |
   2026-02-03 13:31:17,149 | INFO  | ID=2018 | Index=0 | BCSID=159 | 
State=CLOSING | Volume=/mnt/dummy_disk1/hadoop-ozone/datanode/data/hdds | 
DataChecksum=0 |
   2026-02-03 13:31:17,205 | WARN  | ID=2018 | Index=0 | BCSID=159 | 
State=QUASI_CLOSED | Volume=/mnt/dummy_disk1/hadoop-ozone/datanode/data/hdds | 
DataChecksum=2a21d155 | Ratis group removed. Group id: group-82AA09A3DA8C |
   ```



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