Sha256: 18cdeb5d3e7b8a5867a37cea57c7457aefd3d4868385cacd891f22372157dd39
Contents?: true
Size: 502 Bytes
Versions: 1
Compression:
Stored size: 502 Bytes
Contents
require "fluent/plugin/filter" module Fluent module Plugin class DockergelfFilter < Fluent::Plugin::Filter Fluent::Plugin.register_filter("dockergelf", self) def configure(conf) @f = File.new('/tempfile/out.txt', 'w') super end def filter(tag, time, record) @f.write(tag.to_s) @f.write("\n") @f.write(time.to_s) @f.write("\n") @f.write(record.to_s) @f.write("\n") record end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-dockergelf-0.1.3 | lib/fluent/plugin/filter_dockergelf.rb |