Where are jBoss logs located?

We will shortly discuss where JBoss EAP / WildFly logs are located. The location of JBoss logs basically depends on which mode you are using to start the application server.

When running in standalone mode, JBoss logs are located in the standalone/log folder:

standalone
├── configuration
├── data
├── deployments
├── lib
│   └── ext
├── log
│   ├── audit.log
│   ├── server.log
│   └── server.log.2021-08-15
└── tmp

As you can see, the currently running server has created the server.log file.

By default, JBoss / WIldFly configuration uses a Periodic Rotating Logger which rotates logs on a time basis (by default daily):

<periodic-rotating-file-handler name="FILE" autoflush="true">
    <formatter>
        <named-formatter name="PATTERN"/>
    </formatter>
    <file relative-to="jboss.server.log.dir" path="server.log"/>
    <suffix value=".yyyy-MM-dd"/>
    <append value="true"/>
</periodic-rotating-file-handler>

When running in Domain mode, JBoss logs you will find log files at two different levels:

.
├── configuration
├── data
├── log
│   ├── audit.log
│   ├── host-controller.log
│   └── process-controller.log
├── servers
│   ├── server-one
│   │   ├── data
│   │   ├── log
│   │   │   ├── audit.log
│   │   │   └── server.log
│   │   └── tmp
│   └── server-two
│       ├── data
│       ├── log
│       │   ├── audit.log
│       │   └── server.log
│       └── tmp
└── tmp

  • Within the domain/log folder: this folder contains the log files of the Host Controller. Please note that the Host Controller is used to manage the Domain of JBoss/WildFly servers. It does not contain application log file
  • Within the domain/servers/server-name/log folder: this folder contains the server log files for the “server-name”. Applications which are deployed on that server will output their logs there.

Finally, please note that the above coordinates are the default ones where JBoss prints log files. You can write your logs to another location (f.e. on a different partition) by configuring the path attribute of your Logging Handler:

 <file  path="/extfs/logs/server.log"/>