Class: Fluent::Plugin::EC2MetadataFilter
- Inherits:
-
Filter
- Object
- Filter
- Fluent::Plugin::EC2MetadataFilter
- Includes:
- EC2Metadata
- Defined in:
- lib/fluent/plugin/filter_ec2_metadata.rb
Instance Attribute Summary collapse
-
#ec2_metadata ⇒ Object
readonly
Returns the value of attribute ec2_metadata.
Instance Method Summary collapse
Methods included from EC2Metadata
Instance Attribute Details
#ec2_metadata ⇒ Object (readonly)
Returns the value of attribute ec2_metadata.
14 15 16 |
# File 'lib/fluent/plugin/filter_ec2_metadata.rb', line 14 def end |
Instance Method Details
#filter(tag, time, record) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/fluent/plugin/filter_ec2_metadata.rb', line 16 def filter(tag, time, record) tag_parts = tag.split('.') modify_record(record, tag, tag_parts) rescue => e log.warn "ec2-metadata: #{e.class} #{e.message} #{e.backtrace.join(', ')}" end |