Skip to content

Commit

Permalink
Merge pull request #716 from okkez/add-descriptions-in-exec
Browse files Browse the repository at this point in the history
Add descriptions to in-exec
  • Loading branch information
sonots authored and repeatedly committed Dec 8, 2015
1 parent f8b9f0c commit 199cd75
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/fluent/plugin/in_exec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,27 @@ def initialize
'msgpack' => :msgpack,
}

desc 'The command (program) to execute.'
config_param :command, :string
desc 'The format used to map the program output to the incoming event.(tsv,json,msgpack)'
config_param :format, :default => :tsv do |val|
f = SUPPORTED_FORMAT[val]
raise ConfigError, "Unsupported format '#{val}'" unless f
f
end
desc 'Specify the comma-separated keys when using the tsv format.'
config_param :keys, :default => [] do |val|
val.split(',')
end
desc 'Tag of the output events.'
config_param :tag, :string, :default => nil
desc 'The key to use as the event tag instead of the value in the event record. '
config_param :tag_key, :string, :default => nil
desc 'The key to use as the event time instead of the value in the event record.'
config_param :time_key, :string, :default => nil
desc 'The format of the event time used for the time_key parameter.'
config_param :time_format, :string, :default => nil
desc 'The interval time between periodic program runs.'
config_param :run_interval, :time, :default => nil

def configure(conf)
Expand Down

0 comments on commit 199cd75

Please sign in to comment.