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.

Viewing Server and Service Logs in NodeWorx

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. From NodeWorx, navigate to Server > Logs

  3. Select the log group to view from the Select Log Group dropdown

    log group dropdown
  4. Click Continue. This opens the log viewer for that particular log group

  5. 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

    log viewer
  6. 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/ directory

    • Logging 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/ directory

    • Domain-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/ directories

    • IMAP 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/ directories

    • If 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