3 Replies Latest reply on Mar 29, 2019 11:20 AM by tejajrk

    Syslog Access Logs

    bburkett

      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.

        • 1. Re: Syslog Access Logs
          ctomc
          • 2. Re: Syslog Access Logs
            bburkett

            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?

            • 3. Re: Syslog Access Logs
              tejajrk

              Hi Brad,

               

              Were you able to find a way to redirect access logs to syslog?