-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
Description
(This issue was originally filed by @dbeckham at elastic/logstash#2227)
The Ruby plugin documentation is incomplete and only documents the basic configuration option details.
Specifically, the code configuration option is the most important part of the configuration options, but it is one of the least documented options.
Issues:
- There are no links to documentation or Logstash code that describes what the
eventvariable is, or even what type of variable it is. We can assume it's some sort of hash or object based on the single example, but other than that, there are no details. What attributes or methods are available? Is it immutable? Can you alter the contents of other fields? - What constraints are placed on Ruby code used with this plugin? i.e. are there any special keywords that can not be used, limits on methods used, or any particular characters that need special escaping?
- What happens when Ruby code throws an exception? Does Logstash silently drop the event, or does the filter just fail?
A simple link to the description of the event variable, or a wider range of examples may help solve several of these issues.
uschtwill, ibrahima, damienalexandre, fozboz and palashkulsh