2017 © Pedro Peláez
 

bundle splunk-bundle

Bundle for Symfony2 that extends Monolog for SplunkStorm support

image

staffim/splunk-bundle

Bundle for Symfony2 that extends Monolog for SplunkStorm support

  • Tuesday, June 18, 2013
  • by megazoll
  • Repository
  • 1 Watchers
  • 5 Stars
  • 113 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SplunkBundle

About

SplunkStorm handler for Monolog as a Symfony bundle., (*1)

The bundle is inspired from LogglyBundle, (*2)

Note: The bundle did not testing with Splunk, (*3)

Installation

Require the staffim/splunk-bundle package in your composer.json and update your dependencies., (*4)

$ composer require staffim/splunk-bundle:*

Add the StaffimSplunkBundle to your application's kernel:, (*5)

    public function registerBundles()
    {
        $bundles = array(
            ...
            new Staffim\SplunkBundle\StaffimSplunkBundle(),
            ...
        );
        ...
    }

Configuration

Configure Monolog

monolog:
    handlers:
        main:
            type:         fingers_crossed
            action_level: error
            handler:      splunk
        splunk:
            type: service
            id: staffim_splunk.monolog_handler

or buffered handler, (*6)

monolog:
    handlers:
        buffered_splunk:
            type: buffer
            level: debug
            handler: splunk
        splunk:
            type: service
            id: staffim_splunk.monolog_handler

or even error handler, (*7)

services:
    my.monolog.exception_logger:
        public:    false
        class:     Symfony\Bridge\Monolog\Logger
        arguments: ["mole.monolog.exception_logger"]
        calls:
            - [pushHandler, ["@staffim_splunk.monolog_handler"]]

Configure Splunk:

staffim_splunk:
    # SplunkStorm access token
    token: ###
    # SplunkStorm project ID
    project: ###
    # SplunkStorm API host ((defaults to api.splunkstorm.com))
    host: api.splunkstorm.com
    # Level to be logged (defaults to DEBUG)
    level: DEBUG
    bubble: true

The Versions

18/06 2013

dev-master

9999999-dev

Bundle for Symfony2 that extends Monolog for SplunkStorm support

  Sources   Download

MIT

The Requires

 

by Vyacheslav Salakhutdinov

monolog splunk splunkstorm