Skip to content
This repository has been archived by the owner on Mar 22, 2020. It is now read-only.

bash0C7/fluent-plugin-ruby_one_liner

Repository files navigation

fluent-plugin-ruby_one_liner

Run ruby one line of script in this plugin.

Input Plugin

<source>
  type ruby_one_liner
  require_libs open-uri
  command Engine.emit('hoge',Engine.now,{'hoge' => @config['any_config']})
  run_interval 120
  any_config 2
</source>

<match hoge.**>
  type stdout
</match>
2014-02-03 00:38:58 +0900 hoge: {"hoge":"2"}

Output Plugin

<source>
  type exec
  command echo http://example.com
  keys uri
  tag example
  run_interval 5s
</source>

<match example.**>
  type ruby_one_liner
  require_libs open-uri
  command  puts time; puts record['uri']; puts @config['any_config']
  run_interval 120
  any_config 2
</match>
1397928852
http://example.com
2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages