Skip to content

kozmagabor/fluent-plugin-slack

 
 

Repository files navigation

Fluent event to slack plugin.

Installation

$ fluent-gem install fluent-plugin-slack

Usage

<match slack>
  type buffered_slack
  api_key XXX
  team sowa
  channel %23general # You should use %23 in return for #
  username sowasowa
  color good
  icon_emoji :ghost:
  buffer_path /path/to/tmp
  flush_interval 60s
</match>

fluent_logger.post('buffered_slack', {
  :message  => 'Hello<br>World!'
})

Usage(rtm)

<match slack>
  type buffered_slack
  rtm true
  token xoxb-XXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXX
  channel %23general # You should use %23 in return for #
  username sowasowa
  color good
  icon_emoji :ghost:
  buffer_path /path/to/tmp
  flush_interval 60s
</match>

fluent_logger.post('buffered_slack', {
  :message  => 'Hello<br>World!'
})

Copyright

Copyright

Copyright © 2014- Keisuke SOGAWA

License

Apache License, Version 2.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%