1 Reply Latest reply on Sep 11, 2013 8:13 AM by Naziya Syed

    Access logging

    Willem Noorduin Newbie

      I have configured the following in the standalone.xml:


          <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
              <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
              <connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp"/>
              <virtual-server name="default-host" enable-welcome-root="true">
                  <alias name="localhost"/>
                  <alias name="example.com"/>
                  <access-log extended="true"/>


      After a restart, I have gained a ${jboss.log.dir}/default_host/access_log.2012-08-10 file with the begin:


      [root@nlptc27b16 default-host]# cat access_log.2012-08-10

      #Fields: %h %l %u %t "%r" %s %b

      #Version: 2.0

      #Software: JBoss Web/7.0.16..Final-redhat-1


      Only how hard I try, I don't get access lines in this file when I access an application. Any thoughts

        • 1. Re: Access logging
          Naziya Syed Newbie



             Remove the "extended" attribute because extended means "Enable extended pattern, with more options."

             And second thing is :  the access log data is not immediately written in the access log, it is buffered in order to improve the performance so hit the page atleast 5-6 times and then check the access log.