O'Reilly logo

OpenShift Cookbook by Shekhar Gulati

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Enabling JBoss access logs

Access logs are very useful when you want to see a list of all the requests processed by a server. For Apache-based cartridges, access logs are enabled by default, but you will have to enable it manually in JBoss-based cartridges. In this recipe, you will learn how to enable the access logs for JBoss cartridges.

Getting ready

This recipe will pick up where we left off in the Working with JBoss application logs recipe.

How to do it…

Perform the following steps to enable the access logs:

  1. Open the standalone.xml file inside the .openshift/config directory in your favorite editor.
  2. Update the urn:jboss:domain:web:1.5 subsystem with the one shown in the following code:
    <subsystem xmlns="urn:jboss:domain:web:1.5" default-virtual-server="default-host" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required