Repository is archived
No commit activity in last 3 years
No release in over 3 years
Fluentd plugin to run ruby one line of script
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0
>= 0

Runtime

 Project Readme

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