From b6a58cfa8dd7d6cbe675c2099e3c62afb11219f7 Mon Sep 17 00:00:00 2001 From: OZAWA Tsuyoshi Date: Sat, 22 Oct 2011 13:42:45 +0900 Subject: [PATCH] plugin: added JSON stream description to tcp_in section. Signed-off-by: OZAWA Tsuyoshi --- plugin.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin.rst b/plugin.rst index 5e30972..e1a0ffa 100644 --- a/plugin.rst +++ b/plugin.rst @@ -153,7 +153,8 @@ time_format tcp ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -**tcp** input plugin listens MessagePack stream on a TCP socket. This is used by ``fluent-cat`` command or other language bindings. +**tcp** input plugin listens MessagePack stream or encoded JSON stream on a TCP socket. +The MessagePack stream is used by ``fluent-cat`` command or other language bindings. Protocol format:: @@ -164,8 +165,11 @@ Protocol format:: [tag, time, record] or [tag, [[time,record], [time,record], ...]] + (Note that later format is only supported by MessagePack Stream.) example: + ["myapp.access", 1308466941, {"a"=>1}] + or ["myapp.access", [1308466941, {"a"=>1}], [1308466942, {"b"=>2}]] **configuration**::