How to: View Server and Service Logs¶
From the Logs page in NodeWorx, Server Administrators are able to view server and service-level log files.
Domain-level logging can be viewed from within SiteWorx. Details can be found here.
While InterWorx does provide this user interface, it is generally recommended to view and manage log files from the CLI, as that provides an improved ability to search for specific entries, as well as view logging in real time while reproducing issues during troubleshooting.
Contents
Viewing Server and Service Logs in NodeWorx¶
Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)
From NodeWorx, navigate to Server > Logs
Select the log group to view from the Select Log Group dropdown
Click Continue. This opens the log viewer for that particular log group
In the Log Settings dropdown bar, select the required setting from each dropdown:
Log File: The specific log in the group to view
Number of Lines: The number of lines that should show in the log viewer interface
Follow: If this is set to “yes”, the log will update in real time
Newest First: If this is set to “yes”, the newest log entries will be shown at the top of the log viewer
Click Show Log. This will change the log view interface to the specific log that was selected
Server and Service CLI Log Locations¶
InterWorx
Logging related to InterWorx services can be found in the
~iworx/var/log/
directoryLogging related to the InterWorx-specific database can be found at
~iworx/mysql/error.log
FTP
Logs related to the FTP service can be found in the
/var/log/proftpd/
directory
Apache
Server-level Apache log files can be found in the
/var/log/httpd/
directoryDomain-level Apache log files can be found under
/home/{unixuser}/var/{domain.com}/logs
, replacing {unixuser} and {domain.com} with the relevant information
Mail Service
SMTP logs can be found in the
/var/log/smtp/
and/var/log/send/
directoriesIMAP and POP3 logging can be found at
/var/log/dovecot/dovecot.log
SpamAssassin logging can be found at
/var/log/maillog
ClamAV logging is found at
/var/log/clamav/clamd.log
Freshclam logging is found at
/var/log/clamav/freshclam.log
Horde logging can be found at
~iworx/var/log/horde.log
Roundcube logging can be found in the
/usr/local/interworx/lib/roundcube/logs/
directory
MySQL
Logging related to the system MySQL service can generally be found in the
/var/log/mysql/
or/var/log/mariadb/
directoriesIf those directories do not exist on the server, logging related to MySQL will be found in the
/var/log/messages
log file
SSH
Logging related to SSH can be found at
/var/log/secure
System Services
Logging related to System Services can be found at in the
/var/log
directory