Unable to use logFilePrefix for response time filter on an EAP 6 Domain Mode and JON 3.3.x

Solution Unverified - Updated -

Environment

  • Red Hat JBoss Operations Network (JON) 3.3.x
  • Red Hat JBoss Enterprise Application Platform (EAP) 6
    • Domain mode

Issue

  • logFilePrefix does not work for a response time filter if set in EAP Domain mode even though filter works well;
  • Although the response time filter works well in JON 3.3.5 with EAP 6 Domain, the logFilePrefix does not work. Setting the init-parms in standalone EAP[1] server works, but doing the same in domain[2] they are ignored and the defaults are used:
[1]
<subsystem xmlns="urn:rhq:rtfilter:1.0">
           <init-param>
                <param-name>
                    logDirectory
                </param-name>
                <param-value>
                    /home/redhat/NotBackedUp/jboss-eap-6.4/standalone/log/rt
                </param-value>
            </init-param>
            <init-param>
                <param-name>
                    logFilePrefix
                </param-name>
                <param-value>
                    debbie_7080_
                </param-value>
            </init-param> 
        </subsystem>
[2]
<subsystem xmlns="urn:rhq:rtfilter:1.0">
                <init-param>
                    <param-name>
                        logDirectory
                    </param-name>
                    <param-value>
                        /home/redhat/NotBackedUp/jboss-eap-6.4/domain/log/rt
                    </param-value>
                </init-param>
                <init-param>
                    <param-name>
                        logFilePrefix
                    </param-name>
                    <param-value>
                        debbie_7080_
                    </param-value>
                </init-param>
            </subsystem>

Resolution

A workaround would be to edit WEB-INF/web.xml application file and set logFilePrefix:

       <init-param>
           <param-name>logFilePrefix</param-name>
           <param-value>localhost_7080_</param-value>
       </init-param>

The issue is handled in BZ-1360866.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.