How to enable NCSA logging timezone in Fuse Fabric ?

Solution Verified - Updated -

Issue

  • We are recording requests to the jetty webserver, however logging is always done in GMT despite setting the timezone to Australia/Adelaide.
    Here is the pid where we are configuring the log setup:
config:proplist --pid org.ops4j.pax.web
   fabric.zookeeper.pid = org.ops4j.pax.web
   javax.servlet.context.tempdir = /middleware/fuse/fuse-prj-pl/fabric8-karaf-1.2.0.redhat-621117/data/pax-web-jsp
   org.ops4j.pax.web.config.checksum = 688443749
   org.ops4j.pax.web.config.url = profile:jetty.xml
   org.ops4j.pax.web.log.ncsa.append = true
   org.ops4j.pax.web.log.ncsa.directory = /var/log/fuse/log/fuse-prj-pl
   org.ops4j.pax.web.log.ncsa.enabled = true
   org.ops4j.pax.web.log.ncsa.extended = true
   org.ops4j.pax.web.log.ncsa.format = yyyy_mm_dd.request.log
   org.ops4j.pax.web.log.ncsa.retaindays = 90
   org.ops4j.pax.web.log.ncsa.timezone = Australia/Adelaide
   org.ops4j.pax.web.session.cookie.httpOnly = true
   org.osgi.service.http.port = 8182
   service.pid = org.ops4j.pax.web

Environment

  • Red Hat JBoss Fuse
    • 6.2.x
    • pax-web-logging

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content