Sha256: 48bcbd3f415528a34e173894fa243fc635af48ffdcaf9bb148dc1fc47408d593
Contents?: true
Size: 792 Bytes
Versions: 3
Compression:
Stored size: 792 Bytes
Contents
class Fluentd module Setting class FilterGrep include Fluentd::Setting::Plugin register_plugin("filter", "grep") def self.initial_params { } end def self.permit_params [ :label, :pattern, :log_level, :@log_level, { and: {regexp: [:key, :pattern], exclude: [:key, :pattern]} }, { or: {regexp: [:key, :pattern], exclude: [:key, :pattern]} } ] end def common_options [ :label, :pattern, ] end def hidden_options regexps = (1..20).map {|n| :"regexp#{n}"} excludes = (1..20).map {|n| :"exclude#{n}"} [ *regexps, *excludes, :regexp, :exclude, :and, :or ] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fluentd-ui-1.2.1 | app/models/fluentd/setting/filter_grep.rb |
fluentd-ui-1.2.0 | app/models/fluentd/setting/filter_grep.rb |
fluentd-ui-1.1.0 | app/models/fluentd/setting/filter_grep.rb |