fluent-plugin-raven
Fluentd output plugin for Sentry.
Installation
$ gem install fluent-plugin-raven
Configuration
Tag
If tag
is specified as bufferd chunk key, it send as tag for Sentry.
config params
-
dsn
(required): DSN KEY shown at setting page -
environment
: set environment. default values isdevelopment
-
logger_level
: set log level of the Sentry logger. default value isinfo
-
default_level
: set default log level for Sentry. default value iserror
record keys
-
message
(required): message body for sentry as events. A record will be filtered ifmessage
isn't set, because Sentry identify issues bymessage
value. -
level
: log level for Sentry as events.
Example
<match **>
@type raven
dsn https://12345678@sentry.io/123456
logger_level warn
environment development
<buffer tag>
@type file
path fluentd/log/error.*.buffer
timekey 5m
timekey_wait 1m
flush_interval 1s
</buffer>
</match>
Development
bundle install
bundle exec fluentd -c example/fluentd.conf
Copyright
- Copyright(c) 2019- Yuto Suzuki
- License
- Apache License, Version 2.0