Class: Fluentd::Setting::InTail
- Inherits:
-
Object
- Object
- Fluentd::Setting::InTail
- Includes:
- Plugin
- Defined in:
- app/models/fluentd/setting/in_tail.rb
Constant Summary collapse
- MULTI_LINE_MAX_FORMAT_COUNT =
TODO support formatN ???
::Fluent::Plugin::MultilineParser::FORMAT_MAX_NUM
Instance Method Summary collapse
Methods included from PluginParameter
#advanced_options, #all_options, #column_type, #common_options, #create_buffer, #create_formatter, #create_parser, #create_storage, #default, #desc, #have_buffer_section?, #have_format_section?, #have_parse_section?, #have_storage_section?, #hidden_options, #list_of
Methods included from Configurable
Methods included from PluginConfig
#config_element, #parse_attributes, #skip?, #to_config, #validate_configuration
Instance Method Details
#guess_parse_type ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'app/models/fluentd/setting/in_tail.rb', line 13 def guess_parse_type case path when /\.json$/ :json when /\.csv$/ :csv when /\.tsv$/ :tsv when /\.ltsv$/ :ltsv when /nginx/ :nginx when /apache/ :apache2 when %r|/var/log| :syslog else :regexp end end |