Skip to main content

Pentaho+ documentation has moved!

The new product documentation portal is here. Check it out now at docs.hitachivantara.com

 

Hitachi Vantara Lumada and Pentaho Documentation

Adding JBoss logging

Parent article

Optionally, you can add Pentaho application-level logging to the JBoss logging subsystem. Make sure that the Pentaho Server is stopped before you begin, and start the server after you save the file.

Add JBoss logging

Perform the following steps for JBoss logging:

Procedure

  1. Open the standalone.xml file in the <your jboss directory>/standalone/configuration directory.

  2. Find the logging subsystem definition (for example, <subsystem xmlns="urn:jboss:domain:logging:3.0">) and add the following lines of code just after that opening tag:

    <add-logging-api-dependencies value="false"/>
    <use-deployment-logging-config value="false"/>
    
  3. Save and close the file.

  4. Navigate to the pentaho/server/pentaho-server/<your jboss installation directory>/standalone/deployments directory.

  5. Use a ZIP extraction utility to view the contents of the pentaho.war file. Do not unzip or extract the contents of the file.

  6. Navigate to the WEB-INF/classes directory and open the log4j2.xml file in a text editor. By default, all log files are configured to be written to ../logs which, if not changed, will translate to <your jboss directory>/logs.

  7. Replace all occurrences of ../logs with ${jboss.server.log.dir}.

  8. Save and close the file. The ZIP extraction utility might show a prompt asking if you would like to update the file in the pentaho.war archive. If this prompt appears, confirm that you would like to update the file.

Remove extra logging

If you do not configure application-level logging, JBoss will use its default centralized (and system-wide) logging feature.

Perform the following steps if you want to remove the extra log entries generated by Pentaho:

Procedure

  1. Open the standalone.xml file in the <your jboss directory>/standalone/configuration directory.

  2. Find the logging subsystem definition (for example, <subsystem xmlns="urn:jboss:domain:logging:3.0">).

  3. Add the following logger elements to the entries that already exist:

    <logger category="org.hibernate" use-parent-handlers="false">
        <level name="ERROR"/>
    </logger>
    <logger category="net.sf.ehcache" use-parent-handlers="false">
        <level name="ERROR"/>
       </logger>
    <logger category="org.quartz" use-parent-handlers="false">
        <level name="ERROR"/>
    </logger>
        <logger category="org.springframework" use-parent-handlers="false">
        <level name="ERROR"/>
    </logger>
    <logger category="org.springframework.security" use-parent-handlers="false">
        <level name="ERROR"/>
    </logger>
    <logger category="org.pentaho" use-parent-handlers="false">
        <level name="ERROR"/>
    </logger>
    <logger category="com.pentaho" use-parent-handlers="false">
        <level name="ERROR"/>
    </logger>
    <logger category="org.jfree.JCommon" use-parent-handlers="false">
        <level name="ERROR"/>
    </logger-->
    <logger category="org.apache.jackrabbit.core.security.authentication.AbstractLoginModule" use-parent-handlers="false">
        <level name="ERROR"/>
    </logger>
    <logger category="RepositoryImportLog" use-parent-handlers="false">
        <level name="INFO"/>
    </logger>
    
  4. Save and close the file.