lorenzo / cakephp-logstash
CakePHP logstash log stream
Installs: 588
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 3
Forks: 9
Open Issues: 2
Type:cakephp-plugin
Requires
This package is auto-updated.
Last update: 2024-10-25 22:04:53 UTC
README
Requirements
- CakePHP 2.x
- PHP 5.3+
- Composer
Installation
The only installation method supported by this plugin is by using composer. Just add this to your composer.json configuration:
{
"require" : {
"lorenzo/cakephp-logstash": "master"
}
}
Enable plugin
You need to enable the plugin your app/Config/bootstrap.php
file:
CakePlugin::load('Logstash');
Finally add a new logging stream in the same file:
CakeLog::config('debug', array(
'engine' => 'Logstash.LogstashLog',
'types' => array('list', 'of', 'type', 'to', 'log'),
'host' => 'tcp://127.0.0.1', // Set it to the real host works with udp too
'port' => 2020, // Set it to the actual port
'timeout' => 5 // Connection timeout
));