D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
fluent-logger-0.7.1
/
bin
/
Filename :
fluent-post
back
Copy
#!/usr/bin/env ruby require 'fluent/logger/fluent_logger/cui' res = Fluent::Logger::FluentLogger::CUI.post(ARGV) if res[:success] warn "post successed. #=> #{res[:data].inspect}" else warn "post failed. #=> #{res[:data].inspect}" exit 1 end