Skip to content

mocyuto/fluent-plugin-raven

Repository files navigation

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 is development
  • logger_level : set log level of the Sentry logger. default value is info
  • default_level: set default log level for Sentry. default value is error

record keys

  • message (required): message body for sentry as events. A record will be filtered if message isn't set, because Sentry identify issues by message 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