Checking server logs usually means the same ritual every time. SSH into the box, hunt down the right file path, then tail or grep your way through walls of text just to find one line.
The Logs tab replaces that. Connect to a server and CtrlOps scans it on its own, finds the log files, and groups them for you - web servers, PM2 logs from your deployed apps, Docker containers, databases, and system logs. Click one and read it. Search it, follow it live, download it, or truncate it. Output from a cron job that you redirected to a file shows up here like any other log. When a log points at a real problem, take it to the AI Terminal and ask what the error means, or check Infrastructure Details to see whether the server was under load at the time. For a tour of what the server log viewer does before you set it up, see the feature page.
What you can do in the Logs tab
- See every log file CtrlOps finds on the server, grouped by what produced it - no digging for file paths.
- Add a log file auto-discovery missed by pasting its path once.
- Read any log file in a built-in viewer, without opening an SSH session.
- Search inside a log instead of scrolling through thousands of lines by eye.
- Pull up the last 100, 200, 500, 1000, or 5000 lines, or only a recent time range.
- Refresh on demand to pull in the latest lines.
- Follow a log live and watch new lines stream in as they happen.
- Download the log to your machine in one click.
- Read a log that needs sudo by typing the password, and open rotated
.gzfiles. - Truncate or delete a log file to reclaim space, with a confirmation step first.
Why a Logs tab instead of ssh and tail
| Doing it by hand | Doing it in CtrlOps |
|---|---|
ssh user@host, then remember which server this app runs on | Click the server, click the Logs tab |
Remember or hunt for the path: /var/log/nginx/access.log? ~/.pm2/logs/app-out.log? | Every log file is already listed and grouped for you |
tail -n 200 <path>, then tail -n 500 when 200 was not enough | Pick 100, 200, 500, 1000, or 5000 from a menu |
grep <pattern> <path> and re-run it as the pattern changes | Type in the search box |
tail -f <path> and leave the session open | Click Follow |
scp user@host:<path> . to get a copy | Click download |
truncate -s 0 <path> and hope you got the path right | Choose Truncate file… and confirm |
Open the Logs tab
Open app → Click your server → Click the Logs tab
The tab sits in the left sidebar, below File Manager. CtrlOps starts scanning the moment you open it.
How CtrlOps finds your log files
You do not point CtrlOps at anything. It scans the server itself and fills in the Log Sources list on the left, already grouped by what produced each file:
- Web Servers - Nginx, Apache, Caddy, and HAProxy logs.
- Runtime & Apps - the out and error logs of every PM2 process, plus PHP-FPM, Supervisor, Gunicorn, and the Docker engine. To act on PM2 processes rather than read them, use the PM2 Process Manager tab.
- Containers - each running Docker container, if your login can run
docker pswithout sudo. To start, stop, or open a container, use the Docker tab, which has its own Logs view. - Databases - MySQL, MariaDB, PostgreSQL, Redis, and MongoDB logs.
- System & Auth - the server's own logs, such as
syslogandauth.log, plus the kernel log, fail2ban, UFW, and the systemd journal. - Custom Paths - any file you add yourself.
Each source shows two things under its name: the file size and how long ago it was last written to - 472 KB · 45s for a log that is actively being appended to, 356 KB · 177d for one that has been quiet for half a year. That is usually enough to tell which log is worth opening.
If the list is long, use the Search log files box above it to filter by name.
Add a log file CtrlOps did not find
Auto-discovery covers the common locations. If an app writes somewhere unusual, add the path yourself.
Find the input at the bottom of the sources list
Below the log sources you will see a text input with the placeholder /var/log/app.log, and a green plus button next to it.
Paste the full path
Type or paste the absolute path to the log file, for example /var/log/myapp/worker.log.
Click the plus button
The file is added to the list and opens like any other source.
Read a log file
Click a source in the list
The file's contents load into the viewer on the right. The header shows the friendly name, like Nginx · access.
Check the path
The title row shows the real file path the viewer is reading, for example /var/log/nginx/access.log, with an icon to copy it.
Search inside the log
Use the Search logs... box at the top of the viewer to filter down to the lines you care about. This is the replacement for piping the file through grep.
Control how much history you see
The viewer loads the last 200 lines by default, which is enough for most "what just happened" checks.
Need more or less? The lines menu in the toolbar has 100, 200, 500, 1000, and 5000. The since menu narrows it to a time range, such as the last hour. Load older lines fetches more from the same log.
Right next to it, the refresh button pulls in the latest lines whenever you want them, without reloading the tab.
Follow logs in real time
Click Follow and new lines stream in as your server writes them.
This is the one to reach for when you are reproducing a bug: start following, trigger the request, and watch the error land. You are catching it as it actually goes wrong, rather than refreshing afterwards and reading the aftermath.
Click again to stop following and go back to a static view.
Follow is off for a compressed .gz file, and for a log that needs a sudo password. Those open as a one-time read, so click Reload to read them again.
Download a log file
Click the download button in the toolbar and the log is saved to your machine.
Worth knowing: this downloads the log itself, not just the lines currently on screen. A very large log keeps its last 50 MB. Handy when you want to hand a log to a teammate, attach it to a bug report, or dig through it in your own editor.
Truncate or delete a log file
A log file that has been growing for months can eat real disk space. Open More actions in the viewer and choose one:
- Truncate file… empties the file. The file and its permissions stay.
- Delete file… removes the file from the server.
CtrlOps shows the exact command and what will change, and runs it only after you confirm. You can't do this on a Docker container or the systemd journal.
The bin icon in the toolbar is different. Clear view only removes the lines from your screen, and the log on the server stays.
Tips
Troubleshooting
A log file shows nothing or fails to open
The login CtrlOps uses may not have permission to read that file. A log that needs more access shows Needs sudo to read. Open it and type the sudo password, and CtrlOps reads it one time. If your login has no sudo, you see Permission denied, so ask an admin or connect as a user with the access you need.
My log file is missing from the list
Auto-discovery covers the common locations, so an app writing to a custom directory may not show up. Paste the full path into the input at the bottom of the log sources list and click the plus button to add it manually.
The log looks stale and new lines are not appearing
The viewer holds a static snapshot until you ask for more. Click refresh to pull the latest lines, or click Follow to switch to Live and have new lines stream in on their own.
I truncated the wrong log file
Truncate empties the file on the server and cannot be undone. Going forward, download a file first if there is any chance you will want the contents.
Searching does not find a line I know is there
Search only looks at the lines currently loaded in the viewer. If you are on the default 200 lines and the line you want is older, raise the count to 500, 1000, or 5000 first, then search again.
Frequently Asked Questions
How do I view Linux server logs without using SSH?
Open CtrlOps, click your server, and go to the Logs tab. CtrlOps scans the server, finds the log files on it, and groups them under headings like Web Servers and Runtime & Apps. Click any file to read it. There is no SSH session to open and no file path to remember.
How does CtrlOps find my log files?
When you open the Logs tab, CtrlOps scans the server on its own and groups what it finds under Web Servers, Runtime & Apps, Containers, Databases, and System & Auth. Each source shows its file size and how long ago it was last written to, so you can tell at a glance which logs are still active.
What if CtrlOps does not find one of my log files?
Paste the full path into the input at the bottom of the log sources list, for example /var/log/app.log, and click the plus button. The file is added to the list. It is a one-time step - the path is saved and appears alongside the auto-discovered sources every time you come back.
How many lines of a log file can I see at once?
The viewer shows the last 200 lines by default. Use the lines menu in the toolbar to choose 100, 500, 1000, or 5000.
Can I watch logs update in real time?
Yes. Click Follow and new lines stream in as your server writes them, so you can watch something as it is actually going wrong instead of refreshing after the fact. Click again to stop following.
Can I download a server log file to my machine?
Yes. Click the download button in the toolbar and the log is saved to your computer, not just the lines on screen. A very large log keeps its last 50 MB.
How do I empty or delete a log file?
Open More actions in the viewer and choose Truncate file… or Delete file…. Truncate empties the file, and Delete removes it from the server. CtrlOps shows the exact command and asks you to confirm. You cannot undo either one, so download the file first if you might need it.
