Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
After moving Tomcat to systemd service units I neglected to disable the ConsoleAppender that was previously creating the catalina.out file. Now tomcat creates a catalina.log in it's log directory and directs all other output (everything by default) to the journal (and therefore /var/log/messages on rhel-7). I think that the journal output is helpful, but flooding system's /var/log/messages is less than ideal. Should we disable this by default and let users enable the journal logging when they want on rhel-7?
Step to reproduce
1) Install tomcat RPM
2) Start tomcat
3) Observe missing catalina.out and the whole tomcat log being written to /var/log/messages
Work around exist.
Disable the ConsoleAppender. Note that some messages will still be printed, like flags used, etc. Those are actual output of the startup script and are around 10 lines total.
--- /etc/tomcat8/logging.properties.orig 2017-06-30 10:37:50.171000000 -0400
+++ /etc/tomcat8/logging.properties 2017-06-30 10:38:07.499000000 -0400
@@ -13,9 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-handlers = 1catalina.org.apache.juli.AsyncFileHandler, 2localhost.org.apache.juli.AsyncFileHandler, 3manager.org.apache.juli.AsyncFileHandler, 4host-manager.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler
+handlers = 1catalina.org.apache.juli.AsyncFileHandler, 2localhost.org.apache.juli.AsyncFileHandler, 3manager.org.apache.juli.AsyncFileHandler, 4host-manager.org.apache.juli.AsyncFileHandler
-.handlers = 1catalina.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler
+.handlers = 1catalina.org.apache.juli.AsyncFileHandler
############################################################
# Handler specific properties.