Class: Fluent::AddUuidFilter
- Inherits:
-
Filter
- Object
- Filter
- Fluent::AddUuidFilter
- Defined in:
- lib/fluent/plugin/filter_adduuid.rb
Instance Method Summary collapse
- #configure(conf) ⇒ Object
- #filter(tag, time, record) ⇒ Object
-
#initialize ⇒ AddUuidFilter
constructor
A new instance of AddUuidFilter.
- #shutdown ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize ⇒ AddUuidFilter
Returns a new instance of AddUuidFilter.
9 10 11 |
# File 'lib/fluent/plugin/filter_adduuid.rb', line 9 def initialize super end |
Instance Method Details
#configure(conf) ⇒ Object
13 14 15 |
# File 'lib/fluent/plugin/filter_adduuid.rb', line 13 def configure(conf) super end |
#filter(tag, time, record) ⇒ Object
27 28 29 30 |
# File 'lib/fluent/plugin/filter_adduuid.rb', line 27 def filter(tag, time, record) record[key] = SecureRandom.uuid; record end |
#shutdown ⇒ Object
22 23 24 25 |
# File 'lib/fluent/plugin/filter_adduuid.rb', line 22 def shutdown super # destroy end |
#start ⇒ Object
17 18 19 20 |
# File 'lib/fluent/plugin/filter_adduuid.rb', line 17 def start super # init end |