Sensu-Plugins-logs

Build Status Gem Version Code Climate Test Coverage Dependency Status Sensu Bonsai Asset

Sensu Asset

The Sensu assets packaged from this repository are built against the Sensu ruby runtime environment. When using these assets as part of a Sensu Go resource (check, mutator or handler), make sure you include the corresponding Sensu ruby runtime asset in the list of assets needed by the resource. The current ruby-runtime assets can be found here in the Bonsai Asset Index.

Functionality

Files

  • bin/check-journal.rb
  • bin/check-log.rb
  • bin/handler-logevent.rb
  • bin/handler-show-event-config.rb

Usage

handler-logevent

{
  "logevent": {
    "eventdir": "/var/log/sensu/events",
    "keep": 10
  }
}

Installation

Installation and Setup

Notes

Using this plugin with Sensu Go

  • To use included handlers with Sensu Go, use --map-go-event-into-ruby argument or set environment variable SENSU_MAP_GO_EVENT_INTO_RUBY=1

  • Make sure necessary handler configuration json exists under /etc/sensu/conf.d/ or at a path in the colon separated list of files in the environment variable SENSU_CONFIG_FILES