From 25f9c17be3eb9904afeddae67f6a6ee22516361f Mon Sep 17 00:00:00 2001 From: Kenji Okimoto Date: Wed, 6 Dec 2017 14:47:59 +0900 Subject: [PATCH] Add description to parser_syslog --- lib/fluent/plugin/parser_syslog.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/fluent/plugin/parser_syslog.rb b/lib/fluent/plugin/parser_syslog.rb index 8531254128..7fdcad43b3 100644 --- a/lib/fluent/plugin/parser_syslog.rb +++ b/lib/fluent/plugin/parser_syslog.rb @@ -32,8 +32,11 @@ class SyslogParser < Parser REGEXP_DETECT_RFC5424 = /^\<.*\>[1-9]\d{0,2}/ config_set_default :time_format, "%b %d %H:%M:%S" + desc 'If the incoming logs have priority prefix, e.g. <9>, set true' config_param :with_priority, :bool, default: false + desc 'Specify protocol format' config_param :message_format, :enum, list: [:rfc3164, :rfc5424, :auto], default: :rfc3164 + desc 'Specify time format for event time for rfc5424 protocol' config_param :rfc5424_time_format, :string, default: "%Y-%m-%dT%H:%M:%S.%L%z" def initialize