Skip to content

lorenzo/cakephp-logstash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

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

About

CakePHP log stream adapter for logstash

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages