Sha256: ee3d2dd3a3f9669aa1daa180a276dc48f3c4f04a32e33e4be5b924b2287c2448

Contents?: true

Size: 719 Bytes

Versions: 3

Compression:

Stored size: 719 Bytes

Contents

class Fluentd
  module Setting
    class OutTdlog
      include Fluentd::Setting::Plugin

      register_plugin("output", "tdlog")

      def self.initial_params
        params = {
          pattern: "td.*.*",
          buffer_type: "file",
          buffer: {
            "0" => {
              "type" => "file",
              "path" => "/var/log/td-agent/buffer/td",
            }
          },
          auto_create_table: true,
        }
        super.compact.deep_merge(params)
      end

      def common_options
        [
          :label, :pattern, :apikey, :auto_create_table, :database, :table,
        ]
      end

      def hidden_options
        [
          :secondary
        ]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fluentd-ui-1.2.1 app/models/fluentd/setting/out_tdlog.rb
fluentd-ui-1.2.0 app/models/fluentd/setting/out_tdlog.rb
fluentd-ui-1.1.0 app/models/fluentd/setting/out_tdlog.rb