A Jahia community module (not officially supported by Jahia) that mounts the Tomcat log directory into the JCR content tree, making log files accessible in read-only mode through the document manager.
The module reads its settings from the OSGi configuration file:
$JAHIA_DATA_DIR/karaf/etc/org.jahia.modules.tomcatlogprovider.cfg
| Property | Default | Description |
|---|---|---|
mountPath |
/sites/systemsite/files/tomcat-logs |
JCR path where the Tomcat log directory will be mounted |
Changes to the configuration file are applied immediately — the provider remounts at the new path without a restart.
Settings can also be edited in the Jahia administration panel:
Administration → Tomcat Log Provider → Configuration
The panel shows:
${catalina.base}/logs) — read-onlyThe module exposes two queries and one mutation under the graphql-dxm-provider extension point.
# Returns current settings
query {
tomcatLogSettings {
mountPath # current JCR mount path
logPath # resolved on-disk log directory
}
}
# Returns the last N lines of jahia.log (default: 200)
query {
tomcatLogTail(lines: 200)
}
# Saves the mount path and triggers a remount; returns true on success
mutation {
tomcatLogSaveSettings(mountPath: "/sites/systemsite/files/tomcat-logs")
}
All operations require the admin permission.
A dedicated administration page streams the last 200 lines of jahia.log in real time, refreshing every 2 seconds:
Administration → Tomcat Log Provider → Live log viewer
The terminal auto-scrolls to the latest entries. Scrolling up pauses auto-scroll; scrolling back to the bottom resumes it.
ExternalContentStoreProvider backed by Apache Commons VFS2, pointing at ${catalina.base}/logsjnt:file nodes and subdirectories as jnt:folder nodes under the configured mount pathsystemsite administrators groupNote: the mount path is accessible through the Jahia document manager. Restrict access to the mount point using Jahia's built-in ACL system to prevent non-admin users from browsing server log files.
external-provider modulegraphql-dxm-provider moduleIn Jahia, go to Administration → Server settings → System components → Modules
The provider mounts automatically at the default JCR path /sites/systemsite/files/tomcat-logs.
MIT License
Copyright (c) 2019 - present Jahia
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.