mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 01:07:09 +02:00
34 lines
567 B
Ruby
34 lines
567 B
Ruby
class Fluentd
|
|
module Setting
|
|
class OutStdout
|
|
include Fluentd::Setting::Plugin
|
|
|
|
register_plugin("output", "stdout")
|
|
|
|
def self.initial_params
|
|
{
|
|
pattern: "debug.**",
|
|
format: {
|
|
"0" => {
|
|
"@type" => "stdout",
|
|
"output_type" => "json"
|
|
}
|
|
}
|
|
}
|
|
end
|
|
|
|
def common_options
|
|
[
|
|
:pattern, :output_type
|
|
]
|
|
end
|
|
|
|
def hidden_options
|
|
[
|
|
:secondary, :inject, :buffer
|
|
]
|
|
end
|
|
end
|
|
end
|
|
end
|