Sha256: 70f3d54a1319050c69387bb7ca52bc9995c715e81178726607046575513a9b82
Contents?: true
Size: 1.18 KB
Versions: 28
Compression:
Stored size: 1.18 KB
Contents
class Fluentd module Setting class OutElasticsearch include Common KEYS = [ :match, :host, :port, :index_name, :type_name, :logstash_format, :logstash_prefix, :logstash_dateformat, :utc_index, :hosts, :request_timeout, :include_tag_key ].freeze attr_accessor(*KEYS) booleans :logstash_format, :utc_index, :include_tag_key validates :match, presence: true validates :host, presence: true validates :port, presence: true validates :index_name, presence: true validates :type_name, presence: true def self.initial_params { host: "127.0.0.1", port: 9200, index_name: "via_fluentd", type_name: "via_fluentd", logstash_format: true, include_tag_key: false, utc_index: true, } end def common_options [ :match, :host, :port, :logstash_format, :index_name, :type_name, ] end def advanced_options [ :hosts, :logstash_prefix, :logstash_dateformat, :utc_index, :request_timeout, :include_tag_key, ] end end end end
Version data entries
28 entries across 28 versions & 1 rubygems