2 Replies Latest reply on Feb 18, 2016 1:05 PM by Brad Burkett

    Syslog Access Logs

    Brad Burkett Newbie

      Can someone post an example of the standalone.xml for Wildfly 9 showing how to setup syslogging for access logs? I'm a pretty naive with Jboss/Wildfly setups. Managed to get syslogging setup for the server.logs but havent figured out how to do it for access logs. I am trying to follow this post here: Audit logging - WildFly 9 - Project Documentation Editor.

        • 2. Re: Syslog Access Logs
          Brad Burkett Newbie

          That is helpful but I am still confused how to configure it to log access logs. I should specify, I am looking for a way to send the HTTP access logs to syslog. Currently they are just stored in wildfly/standalone/log/. This done by this configuration on the http listener:

          <http-listener name="default" socket-binding="http" redirect-socket="https" max-post-size="154857600" record-request-start-time="true"/>

                          <https-listener name="https-listener" socket-binding="https" security-realm="WildFlyRealm" max-post-size="154857600" record-request-start-time="true"/>

                          <host name="default-host" alias="localhost">

                              <location name="/" handler="welcome-content"/>

                              <access-log pattern="%t %S %H %p %U %s %b %D" directory="${jboss.home.dir}/standalone/log" rotate="true"/>

                              <filter-ref name="server-header"/>

                              <filter-ref name="x-powered-by-header"/>

                          </host>

           

          Is there a way to send the HTTP access logs to syslog?