A Laravel package for remote monitoring with Elasticsearch logging integration.
Install the package via Composer:
composer require learnkit/remote-monitorPublish the configuration file:
php artisan vendor:publish --provider="LearnKit\RemoteMonitor\RemoteMonitorServiceProvider"Configure your environment variables:
REMOTE_ELASTIC_HOST=your-elasticsearch-host
REMOTE_ELASTIC_API_KEY=your-api-key
REMOTE_ELASTIC_LOGS_INDEX=remote-logsUse the rlog() helper function to log messages to Elasticsearch:
// Simple logging
rlog('User logged in', ['user_id' => 123]);
// Get logger instance
$logger = rlog();
$logger->info('Custom message');
$logger->error('Error occurred', ['error' => $exception->getMessage()]);- PHP ^8.3
- Laravel ^10.0|^11.0|^12.0
MIT License