Unable to use logFilePrefix for response time filter on an EAP 6 Domain Mode and JON 3.3.x
Environment
- Red Hat JBoss Operations Network (JON) 3.3.x
- Red Hat JBoss Enterprise Application Platform (EAP) 6
- Domain mode
Issue
logFilePrefixdoes not work for aresponse time filterif set in EAP Domain mode even though filter works well;- Although the
response time filterworks well in JON 3.3.5 with EAP 6 Domain, thelogFilePrefixdoes not work. Setting theinit-parmsin 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
