EAP 7 access-log rotates to a new file name with an incorrect date string when the rotation happens after restaring
Issue
- EAP 7 access-log rotates to a new file name with an incorrect date string when the rotation happens after restaring.
- For example, if the access-log rotation happened after restarting JBoss instance at 2018/04/22, access_log for 2018/04/21 would be rotated to access_log.2018-04-22.log and access_log for 2018/04/22 would be rotated to access_log.2018-04-22-1.log:
$ ls -l standalone/log/access_log*
-rw-rw-r--. 1 <user> <group> 69 Apr 20 2018 standalone/log/access_log.2018-04-20.log
-rw-rw-r--. 1 <user> <group> 69 Apr 22 2018 standalone/log/access_log.2018-04-22-1.log // this should be access_log.2018-04-22.log
-rw-rw-r--. 1 <user> <group> 69 Apr 21 2018 standalone/log/access_log.2018-04-22.log // this should be access_log.2018-04-21.log
-rw-rw-r--. 1 <user> <group> 69 Apr 23 2018 standalone/log/access_log.log
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
