Download the PHP package osit/laravel-log-sentinel without Composer
On this page you can find all versions of the php package osit/laravel-log-sentinel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download osit/laravel-log-sentinel
More information about osit/laravel-log-sentinel
Files in osit/laravel-log-sentinel
Package laravel-log-sentinel
Short Description A Laravel admin package for monitoring application, server, database, and security logs through a Blade dashboard.
License MIT
Informations about the package laravel-log-sentinel
Tags
laravel logs log-monitoring security-alerts admin-dashboard blade apache nginx mysql postgresql ssh linux datatables sweetalert2 monitoring devops
Laravel Log Sentinel
Laravel Log Sentinel is a Laravel admin package for monitoring application, web server, database, SSH/authentication, and Linux system logs through a clean Blade dashboard.
It provides log source management, log parsing, searchable DataTables views, security alert detection, dashboard analytics, and retention/pruning tools.
Features
- Blade-based admin dashboard
- Log source management
- Laravel log parser
- Apache access and error log parsers
- Nginx access and error log parsers
- SSH/auth log parser
- Linux system log parser
- MySQL error log parser
- PostgreSQL log parser
- DataTables log viewer
- DataTables alert viewer
- SweetAlert2 toast and confirmation notifications
- Security alert detection engine
- Dashboard analytics overview
- Log retention and pruning command
- Configurable path security
- Installer command
Supported Log Sources
| Source | Parser Key |
|---|---|
| Laravel logs | laravel |
| Apache access logs | apache_access |
| Apache error logs | apache_error |
| Nginx access logs | nginx_access |
| Nginx error logs | nginx_error |
| SSH/auth logs | ssh_auth |
| Linux system logs | linux_system |
| MySQL error logs | mysql_error |
| PostgreSQL logs | postgresql |
| Generic/custom logs | generic |
Requirements
- PHP 8.2+
- Laravel 11, 12, or 13
- MySQL, MariaDB, PostgreSQL, or another Laravel-supported database
- Composer
Installation
Install the package with Composer:
Run the installer:
Run migrations:
Optionally create the default Laravel log source during installation:
Configuration
Publish the configuration file:
The config file will be published to:
Important settings include:
Admin Dashboard
After installation, open:
The dashboard includes:
- Total log sources
- Active log sources
- Total log entries
- Entries today
- Error entries
- Open alerts
- Critical alerts
- Activity overview
- Top alert types
- Top IP addresses
- Latest alerts
- Latest log entries
Managing Log Sources
Open:
From this page, admins can:
- Add log sources
- Edit log sources
- Enable or disable log sources
- Test file readability
- Scan individual sources
- Delete source records
Deleting a source does not delete the actual log file.
Log Viewer
Open:
The log viewer supports:
- Server-side DataTables loading
- Search
- Sorting
- Filtering by source
- Filtering by source type
- Filtering by level
- Filtering by HTTP status code
- Filtering by date range
- Viewing full log details
Alert Viewer
Open:
The alert viewer supports:
- Server-side DataTables loading
- Search
- Filtering by severity
- Filtering by status
- Filtering by alert type
- Acknowledge alerts
- Resolve alerts
- Reopen alerts
- View linked log entries
Security Alert Detection
Log Sentinel detects alerts for activity such as:
.envaccess attempts.gitaccess attempts- phpMyAdmin scans
- WordPress admin scans
- HTTP 500 errors
- HTTP 403 responses
- Failed SSH logins
- Invalid SSH users
- Database authentication failures
- MySQL access denied errors
- PostgreSQL authentication failures
- Out-of-memory events
- Service failures
- Laravel critical errors
- Apache/Nginx permission denied events
Run detection against existing logs:
New alerts are automatically detected during log scans.
Artisan Commands
Install
Options:
Scan Logs
Scan one source only:
Detect Alerts
Prune Logs
Dry run:
Run pruning:
Override retention days:
Scheduler Setup
Add the commands to the host Laravel application scheduler.
In Laravel 11+ / 12, this is usually done in:
Example:
Production Security Checklist
Before using this package in production:
- Use authentication middleware.
- Restrict access to admin users only.
- Keep path security enabled.
- Only allow trusted base paths.
- Do not allow arbitrary file browsing.
- Disable Laravel debug mode.
- Run pruning daily.
- Review retention settings.
- Protect server log file permissions.
Recommended middleware config:
For projects with custom admin middleware:
or:
Path Security
Log Sentinel is designed to read log files only from configured base paths.
Example:
Avoid disabling path restrictions in production.
Retention
Retention settings are configured in:
Each log source can also define its own retention period.
Publishing Views
To customize the Blade views:
Views will be published to:
Publishing Migrations
Development Notes
During local package development, the package can be loaded through a Composer path repository:
Then require it in the host Laravel app:
License
MIT
All versions of laravel-log-sentinel with dependencies
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/routing Version ^11.0|^12.0|^13.0
illuminate/view Version ^11.0|^12.0|^13.0