-
Notifications
You must be signed in to change notification settings - Fork 170
Open
Description
GlassFish Version (and build number)
7.1.0
JDK version
21
OS
Red Hat
Database
No response
Problem Description
With the following log configuration (daily rotation):
set-log-attributes org.glassfish.main.jul.handler.GlassFishLogHandler.rotation.rollOnDateChange=true
set-log-attributes org.glassfish.main.jul.handler.GlassFishLogHandler.rotation.compress=true
set-log-attributes org.glassfish.main.jul.handler.GlassFishLogHandler.rotation.maxArchiveFiles=20
set-log-attributes org.glassfish.main.jul.handler.GlassFishLogHandler.file=/var/log/cestel/calypso/server.log
After the rotation, the logs are left with only these three lines:
[2026-01-04T00:00:00.002076+01:00] [GF 7.1.0] [INFO] [] [] [tid: _ThreadID=76 _ThreadName=log-rotation-timer-for-GlassFishLogHandler] [levelValue: 800] [[
Rolling the file /var/log/cestel/calypso/server.log; output was originally enabled: true]]
[2026-01-04T00:00:00.007391+01:00] [GF 7.1.0] [INFO] [] [] [tid: _ThreadID=76 _ThreadName=log-rotation-timer-for-GlassFishLogHandler] [levelValue: 800] [[
Archiving file /var/log/cestel/calypso/server.log to /var/log/cestel/calypso/server.log_2026-01-04T00-00-00]]
[2026-01-04T00:00:00.009401+01:00] [GF 7.1.0] [INFO] [] [org.glassfish.main.jul.rotation.LogFileArchiver] [tid: _ThreadID=548 _ThreadName=old-log-files-cleanup-server.log] [levelValue: 800] [[
File /var/log/cestel/calypso/server.log_2026-01-04T00-00-00 of size 899 has been archived to file /var/log/cestel/calypso/server.log_2026-01-04T00-00-00.gz of size 364 in 1 ms]]
...and therefore, the day's logs are "lost".
Steps to reproduce
- Configure GlassFish with the following commands to set up daily rotation.
- Generate activity.
- Wait until the next day for the rotation to occur.
Impact of Issue
The following day, the daily activity logs were not found in the file server.log_YYYY-MM-DDT00-00-00.gz,
where YYYY-MM-DD was the day of the activity.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working