Skip to content

Fluentd output plugin to aggregate errors/exception to sentry which are a realtime event logging and aggregation platform.

License

Notifications You must be signed in to change notification settings

skck/fluent-plugin-sentry

 
 

Repository files navigation

fluent-plugin-sentry Build Status

Overview

Fluentd output plugin to send aggregated errors/exception events to Sentry which are a realtime event logging and aggregation platform.

If you have sent events to Sentry directory from front webpage without aggregation, you may got down response time and performance problem especially in PHP.
To use Sentry and Fluentd together, it will got best performance because Fluentd acts messege queue for Sentry.

Installation

install with gem or fluent-gem command as:

# for fluentd
$ gem install fluent-plugin-sentry

# for td-agent
$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-sentry

Preparation

create sentry dashboard first. It could start with cost free!!

OR

Usage

<source>
 type forward
</source>

<match notify.**>
  type sentry

  # Set endpoint API URL
  endpoint_url       https://API_KEY:API_PASSWORD@app.getsentry.com/PROJECT_ID

  # Set default events value of 'server_name'
  # To set short hostname, set like below.
  hostname_command   hostname -s

  # rewrite shown tag name for Sentry dashboard
  remove_tag_prefix  notify.
</match>

Parameters

  • endpoint_url (Required)
    Set endpoint API URL which shows at Sentry dashboard. (it is not sentry account information)

  • default_level
    [default] error

  • defalut_logger
    [default] flunetd

  • hostname_command
    [default] hostname Set default frontend value of 'server_name'

  • flush_interval
    [default] 0sec

It also support rewriting Tag with SetTagKeyMixin.

  • remove_tag_prefix
  • remove_tag_suffix
  • add_tag_prefix
  • add_tag_suffix

Blog Articles

TODO

Pull requests are very welcome!!

Copyright

Copyright © 2014- Kentaro Yoshida (@yoshi_ken)

License

Apache License, Version 2.0

About

Fluentd output plugin to aggregate errors/exception to sentry which are a realtime event logging and aggregation platform.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%