Created
May 7, 2013 10:56
-
-
Save acidlemon/5531810 to your computer and use it in GitHub Desktop.
原始的なfluentd configtest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'fluent/config' | |
obj = Fluent::Config.read(ARGV[0]) | |
if obj then | |
print "config is OK\n" | |
else | |
print "config has some errors\n" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
なお、設定ファイルに文法エラーがあると parse error at fluentd.conf line 5 (Fluent::ConfigParseError) となって
そもそもsome errorsまで行かないのであんまりelseに意味は無いかもしれない('-'o)