Sensu-Plugins-logs
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
Notes
Using this plugin with Sensu Go
To use included handlers with Sensu Go, use
--map-go-event-into-ruby
argument or set environment variableSENSU_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 variableSENSU_CONFIG_FILES