Bluehost Self-Managed VPS and VDS: How to Check System Logs
System logs record events about the state of your server and the processes running on it. Knowing how to access them is important because they can help you solve many problems on your Bluehost Self-Managed VPS or Virtual Dedicated Server (VDS).
- You need SSH or console access to check system logs on your server.
- Most troubleshooting and monitoring starts by inspecting the logs for errors or warnings.
- If you're logged in as
root, you can leave offsudoin the commands below. - These instructions apply to AlmaLinux 8/9/10, Rocky Linux 8/9/10, CentOS Stream 9/10, Fedora, Ubuntu, and Debian.
What Are System Logs?
- System logs contain events and messages from the Linux kernel, your web and database servers, security events, and more.
- They are your first step in diagnosing problems, finding error messages, and understanding what happened on your server.
Where Logs Are Located
- All of the supported distributions use the systemd journal, which you read with
journalctl. - Classic log files live in /var/log/ and include
syslog,messages,auth.log, and more. - Some apps, such as Apache, Nginx, and MySQL, keep their own logs in /var/log/, for example
/var/log/apache2/or/var/log/nginx/.
Checking Logs With journalctl (systemd Journal)
On all supported distributions, journalctl provides a scrollable, filterable view of your system logs.
Show the latest system logs:
Example Output:
This opens the logs in a pager. Use the arrow keys to scroll, and press q to exit.
Show all logs since the last boot:
Follow new log messages in real time (like tail -f):
Example Output:
Press Ctrl+C to stop following the logs.
Checking Logs in /var/log/ (Classic Log Files)
- n8n, Portainer, LEMP, LAMP, and WordPress run in Docker containers. See Checking Logs for Dockerized Apps for their log commands.
- GatorClaw, OpenClaw, Magento 2, Claude Code, Moodle, Ollama, Odoo, Hermes Agent, and Paperclip are installed directly, not through Docker. Their logs use the standard commands and files in this section.
Classic Log Files for Native Apps and System Services
General system and application logs
- Ubuntu, Debian:
/var/log/syslog - AlmaLinux, Rocky Linux, CentOS Stream, Fedora:
/var/log/messages
Security and SSH logs
- Ubuntu, Debian:
/var/log/auth.log - AlmaLinux, Rocky Linux, CentOS Stream, Fedora:
/var/log/secure
Web server logs (access and error)
- Apache logs:
- Ubuntu, Debian:
Access logs:/var/log/apache2/access.log
Error logs:/var/log/apache2/error.log - AlmaLinux, Rocky Linux, CentOS Stream, Fedora:
Access logs:/var/log/httpd/access_log
Error logs:/var/log/httpd/error_log
- Ubuntu, Debian:
- Nginx logs (all distributions):
Access logs:/var/log/nginx/access.log
Error logs:/var/log/nginx/error.log
View the last 40 lines of the main system logs:
Ubuntu, Debian:
Example Output:
AlmaLinux, Rocky Linux, CentOS Stream, Fedora:
Example Output:
View the last 40 lines of the Apache access and error logs:
Ubuntu, Debian:
AlmaLinux, Rocky Linux, CentOS Stream, Fedora:
View the last 40 lines of the Nginx access and error logs (all distributions):
If a Log File Is Missing
Files such as /var/log/syslog, /var/log/auth.log, /var/log/messages, and /var/log/secure are written by a logging service called rsyslog. Fedora doesn't install it by default, and some Debian installations don't either. If you see No such file or directory, you can read the same information with journalctl, or install rsyslog.
Ubuntu, Debian:
AlmaLinux, Rocky Linux, CentOS Stream, Fedora:
The log files are written from that point on. Earlier events remain available through journalctl.
Checking Logs for Dockerized Apps
If your app was installed through a one-click install and runs in Docker (such as n8n, Portainer, LEMP, LAMP, or WordPress), use the following commands.
List all running containers:
Example Output:
Use the name in the NAMES column in the commands below. The container names on your server may differ from the examples.
View the most recent logs for a specific container (for example, WordPress):
Example Output:
The --tail 50 option shows the last 50 lines. Without it, Docker prints the container's entire log history.
Follow logs in real time (like tail -f):
Press Ctrl+C to stop following the logs.
Traefik and Portainer logs:
Useful Log Commands and Tips
Search for error messages quickly:
Ubuntu, Debian:
AlmaLinux, Rocky Linux, CentOS Stream, Fedora:
Show only logs from a specific service:
Show logs for today only:
Check how much disk space your logs use:
Example Output:
View logs with less for scrolling and searching:
Ubuntu, Debian:
AlmaLinux, Rocky Linux, CentOS Stream, Fedora:
Press q to exit less.
Summary
Monitoring the logs on your Bluehost Self-Managed VPS or Virtual Dedicated Server (VDS) helps you troubleshoot problems and keep your server running smoothly. Good places to look include journalctl for system-level logs, /var/log/ for traditional system and app logs, and Docker commands for containerized apps.