Class: Fluentd::Setting::OutElasticsearch

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
app/models/fluentd/setting/out_elasticsearch.rb

Constant Summary collapse

KEYS =
[
  :match,
  :host, :port, :index_name, :type_name,
  :logstash_format, :logstash_prefix, :logstash_dateformat, :utc_index,
  :hosts, :request_timeout, :include_tag_key
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Common

#boolenan, #child_class, #children_of, #column_type, #conf, #empty_value?, #flag, #input_plugin?, #output_plugin?, #plugin_type_name, #print_if_present, #to_config, #values_of

Class Method Details

.initial_paramsObject



23
24
25
26
27
28
29
30
31
32
33
# File 'app/models/fluentd/setting/out_elasticsearch.rb', line 23

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

Instance Method Details

#advanced_optionsObject



42
43
44
45
46
47
# File 'app/models/fluentd/setting/out_elasticsearch.rb', line 42

def advanced_options
  [
    :hosts, :logstash_prefix, :logstash_dateformat,
    :utc_index, :request_timeout, :include_tag_key,
  ]
end

#common_optionsObject



35
36
37
38
39
40
# File 'app/models/fluentd/setting/out_elasticsearch.rb', line 35

def common_options
  [
    :match, :host, :port, :logstash_format,
    :index_name, :type_name,
  ]
end