https://github.com/fluent/fluent-plugin-msgpack-rpc
MessagePack-RPC input plugin for Fluentd data collector
https://github.com/fluent/fluent-plugin-msgpack-rpc
Last synced: 8 months ago
JSON representation
MessagePack-RPC input plugin for Fluentd data collector
- Host: GitHub
- URL: https://github.com/fluent/fluent-plugin-msgpack-rpc
- Owner: fluent
- Created: 2011-09-29T11:52:42.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2014-02-10T06:29:02.000Z (about 12 years ago)
- Last Synced: 2025-06-08T16:08:23.334Z (9 months ago)
- Language: Ruby
- Homepage:
- Size: 122 KB
- Stars: 9
- Watchers: 14
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: ChangeLog
Awesome Lists containing this project
README
About This Plugin
-----------------
This plugin is an input plugin for Fluentd (http://fluentd.org/).
All applications using MessagePack-RPC client can send events to Fluent by using this plugin.
How to Configure
----------------
::
type msgpack_rpc
port 9000
bind 0.0.0.0
'bind' is an optional parameter.
Interface of the Server
-----------------------
The server has following interface::
def log(tag, time, record)
def logs(tag, entries)
'time' is a time when the event occurred. 'record' is a Hash having information of the event.
'entries' argument is an array of lists having [time, record].
When passing 0 to 'time', the server automatically use the current time as 'time'.
See also a sample client code below.
Sample Client Code
------------------
::
require 'msgpack/rpc'
cli = MessagePack::RPC::Client.new('127.0.0.1', 9000)
cli.call(:log, 'debug.tag', 0, { 'key' => 'value' })
cli.call(:logs, 'debug.tag', [[0, {'key' => 'value'}], [Time.now.to_i, {'red' => 'bull'}]])