Class: Fluentd::Setting::OutMongo
- Inherits:
-
Object
- Object
- Fluentd::Setting::OutMongo
show all
- Includes:
- Plugin
- Defined in:
- app/models/fluentd/setting/out_mongo.rb
Class Method Summary
collapse
Instance Method Summary
collapse
#advanced_options, #all_options, #column_type, #create_buffer, #create_formatter, #create_parser, #create_storage, #default, #desc, #have_buffer_section?, #have_format_section?, #have_parse_section?, #have_storage_section?, #list_of
#initialize
#config_element, #parse_attributes, #skip?, #to_config, #validate_configuration
Class Method Details
.initial_params ⇒ Object
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'app/models/fluentd/setting/out_mongo.rb', line 10
def self.initial_params
{
host: "127.0.0.1",
port: 27017,
capped: true,
capped_size: "100m",
buffer_type: "file",
buffer: {
"0" => {
"type" => "file",
"path" => "/var/log/td-agent/buffer/mongo",
}
},
}
end
|
Instance Method Details
#common_options ⇒ Object
26
27
28
29
30
31
32
|
# File 'app/models/fluentd/setting/out_mongo.rb', line 26
def common_options
[
:label,
:pattern, :host, :port, :database, :collection,
:tag_mapped, :user, :password,
]
end
|
#hidden_options ⇒ Object
34
35
36
37
38
39
40
|
# File 'app/models/fluentd/setting/out_mongo.rb', line 34
def hidden_options
[
:secondary, :inject, :buffer,
:include_tag_key,
:include_time_key
]
end
|