mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-11 16:57:11 +02:00
31 lines
495 B
Ruby
31 lines
495 B
Ruby
class Fluentd
|
|
module Setting
|
|
class ParserLtsv
|
|
include Fluentd::Setting::Plugin
|
|
|
|
register_plugin("parser", "ltsv")
|
|
|
|
def self.initial_params
|
|
{
|
|
delimiter: "\t",
|
|
delimiter_pattern: nil,
|
|
label_delimiter: ":"
|
|
}
|
|
end
|
|
|
|
def common_options
|
|
[
|
|
:delimiter,
|
|
:label_delimiter
|
|
]
|
|
end
|
|
|
|
def advanced_options
|
|
[
|
|
:delimiter_pattern
|
|
]
|
|
end
|
|
end
|
|
end
|
|
end
|