2017 © Pedro Peláez
 

cakephp-plugin cakephp-logstash

CakePHP logstash log stream

image

lorenzo/cakephp-logstash

CakePHP logstash log stream

  • Saturday, November 18, 2017
  • by lorenzo
  • Repository
  • 1 Watchers
  • 11 Stars
  • 564 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Logstash log stream for CakePHP

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:, (*1)

{
  "require" : {
    "lorenzo/cakephp-logstash": "master"
  }
}

Enable plugin

You need to enable the plugin your app/Config/bootstrap.php file:, (*2)

CakePlugin::load('Logstash');

Finally add a new logging stream in the same file:, (*3)

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
));

The Versions

18/11 2017

dev-master

9999999-dev https://github.com/lorenzo/cakephp-logstash

CakePHP logstash log stream

  Sources   Download

MIT

The Requires

 

log cakephp logstash