4 Replies Latest reply on Aug 16, 2013 1:47 AM by sat-jboss

    server.log file location

    sat-jboss Newbie

      How to change default log file location of server.log file?


      JBoss EAP 6.1


      File: <JBOSS_HOME>\standalone\configuration\logging.properties




      change to



      After changing the filename , once we restart Jboss the logging.properties file gets updated with old file location.


      Any advice?

        • 1. Re: server.log file location
          Wolf-Dieter Fink Master

          You can change the logfile location in the standalone.xml if the server is down.

          But the prefered way is to use the CLI or management console to do it.

          Also you can change the default location by using the -Djboss.server.log.dir=<a path> as JVM property during startup

          • 2. Re: server.log file location
            sat-jboss Newbie

            From Management console




            Periodic File Handler is set as follows:


                   <subsystem xmlns="urn:jboss:domain:logging:1.2">

                        <periodic-rotating-file-handler autoflush="true" name="FILE">


                                <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>


                            <file path="server.log" relative-to="jboss.server.log.dir"/>

                            <suffix value=".yyyy-MM-dd"/>

                            <append value="true"/>



            I am not able to change value of relative-to="jboss.server.log.dir"



            In JVM envrionment ; jboss.server.log.dir is set to D:\CA\jboss-eap-6.1\standalone\log .


            How to set this value to other location.

            • 3. Re: server.log file location
              Wolf-Dieter Fink Master

              If you use standalone mode you can add the property to the start command:


                 standalone.bat -D-Djboss.server.log.dir=d:\logfiles\server1


              this should change the path.

              • 4. Re: server.log file location
                sat-jboss Newbie

                Updated JAVAI_OPTS in startup file and its working .. thanks for your advice


                rem # Set log directory

                set "JAVA_OPTS=%JAVA_OPTS% -Djboss.server.log.dir=E:\jboss-eap-6.1\log"