[Feat] Service Logs Viewer#1108
Open
RichardAnderson wants to merge 7 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new “Service logs” viewer under server logs, exposing log sources directly from installed services (via a HasLogs contract) and enabling read/search, download, and (file-only) clear actions.
Changes:
- Introduces service log catalogue generation (
GetServiceLogs) and new service log DTO/contract (ServiceLog,HasLogs) implemented across multiple services. - Adds new server log endpoints and Inertia page for viewing/searching/downloading/clearing service logs.
- Adds SSH Blade helpers for journal/file searching and creates a feature test suite for the new service logs routes.
Reviewed changes
Copilot reviewed 26 out of 26 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/Feature/ServiceLogsTest.php | Adds feature coverage for catalogue/rendering/auth, read validation, clear behavior, and download route. |
| resources/views/ssh/os/journal-read.blade.php | Adds journalctl-based log reading with optional grep filtering. |
| resources/views/ssh/os/journal-dump.blade.php | Adds journal dump-to-file script for downloads. |
| resources/views/ssh/os/grep.blade.php | Adds sudo grep helper used for file log searching. |
| resources/js/pages/server-logs/services.tsx | New Inertia page implementing the service log viewer UI (select/search/refresh/download/clear). |
| resources/js/layouts/server/layout.tsx | Adds “Service logs” nav item and renames “Remote logs” to “Custom logs”. |
| resources/js/components/ui/combobox.tsx | Adds placeholder support and muted placeholder styling. |
| app/Services/Webserver/Nginx.php | Implements HasLogs and exposes nginx error/access logs. |
| app/Services/Webserver/Caddy.php | Implements HasLogs and exposes caddy error log. |
| app/Services/Valkey/Valkey.php | Implements HasLogs and exposes Valkey systemd journal. |
| app/Services/Redis/Redis.php | Implements HasLogs and exposes Redis systemd journal. |
| app/Services/ProcessManager/Supervisor.php | Implements HasLogs and exposes supervisord log. |
| app/Services/PHP/PHP.php | Implements HasLogs and exposes PHP-FPM journal + per-site-user error logs. |
| app/Services/Firewall/Ufw.php | Implements HasLogs and exposes UFW log file. |
| app/Services/Database/Postgresql.php | Implements HasLogs and exposes PostgreSQL systemd journal. |
| app/Services/Database/Mysql.php | Implements HasLogs and exposes MySQL systemd journal. |
| app/Services/Database/Mariadb.php | Implements HasLogs and exposes MariaDB systemd journal. |
| app/Services/ServiceLog.php | Adds DTO representing a single exposed service log and its display formatting. |
| app/Services/HasLogs.php | Adds contract for services that expose logs to the viewer. |
| app/Providers/AppServiceProvider.php | Registers GetServiceLogs as a scoped service (request-level cache). |
| app/Policies/ServerLogPolicy.php | Adds viewServiceLogs and manageServiceLogs abilities. |
| app/Http/Controllers/ServerLogController.php | Adds service logs routes (catalogue/read/download/clear) and updates remote logs title. |
| app/Actions/Server/ReadServiceLog.php | Adds validated service log reading (tail/grep/journalctl) via SSH templates. |
| app/Actions/Server/GetServiceLogs.php | Builds the service log catalogue from READY services + a system sshd journal entry. |
| app/Actions/Server/DownloadServiceLog.php | Adds service log download flow (file or journal dump + SFTP download + delayed cleanup). |
| app/Actions/Server/ClearServiceLog.php | Adds validation + file-only clear behavior. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Service logs for vito servers.