Sha256: 304c563f2dda7ada9024337dbf5c91b568a9e555ccc4f67c8403244281553fbd

Contents?: true

Size: 681 Bytes

Versions: 4

Compression:

Stored size: 681 Bytes

Contents

require "fluent/plugin/parser_multiline"

class Fluentd
  module Setting
    class InTail
      include Fluentd::Setting::Plugin

      register_plugin("input", "tail")
      # TODO support formatN ???

      MULTI_LINE_MAX_FORMAT_COUNT = ::Fluent::Plugin::MultilineParser::FORMAT_MAX_NUM

      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
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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