Log File Locations
Reference
XWiki logs to the console, and the console is captured by whatever starts XWiki, so the file to open depends on how the instance was installed rather than on XWiki itself.
Where Each Installation Writes
| Installation Method | XWiki's Log | How to Read It |
|---|---|---|
| Standalone (demo) distribution | The console, and logs/<yyyy_mm_dd>.jetty.log under the distribution directory | tail -f logs/*.jetty.log. Jetty keeps 90 days of files, named after the GMT day they cover, and writes its access log beside them as <yyyy_mm_dd>.request.log. |
| Debian or Ubuntu package, on Tomcat | /var/log/tomcat10/catalina.out or /var/log/tomcat11/catalina.out, depending on which package is installed | journalctl -u tomcat10 on a system where Tomcat runs under systemd, otherwise read the file |
| Debian or Ubuntu package, on Jetty (the xjetty package) | /var/log/xwiki/<yyyy_mm_dd>.jetty.log, the package having symlinked Jetty's log directory there | journalctl -u xwiki, or read the file |
| Docker image | The container console, and a rotating file in the permanent directory | docker logs. That page covers the Docker case in full, including what survives the container. |
| Manual .war deployment | Wherever the servlet container sends its console | For Tomcat, /var/log/tomcat*/catalina.out on a packaged install or <tomcat home>/logs/catalina.out on an unpacked one |
Job Logs
Operations that can take a while run as jobs: installing or upgrading an extension, deleting a batch of pages, rebuilding the search index. Each job keeps its own log, separate from the main one, in the permanent directory:
<permanent directory>/jobs/status/<job id>/log.xmlThose files are written for the user interface rather than for reading directly. The Extension Manager shows the progress log of an installation or an upgrade, which is the first place to look when an extension fails to install.
FAQ
Why is there no xwiki.log file?
Because the Logback configuration XWiki ships declares a console appender and nothing else. To get a file of your own, add a file appender in logback.xml, as described in Configure Log Levels.
The log stops at the servlet container's startup messages. Where is the rest?
The container is capturing its console somewhere other than the file you opened, which is common when it runs under systemd. Ask systemd instead, with journalctl -u followed by the service name.