Commit 27068fc6 authored by Ivan Tyagov's avatar Ivan Tyagov

Add an example of MSGPack transmission to Wendelin from a file.

parent 2b1c718b
...@@ -8,8 +8,9 @@ ...@@ -8,8 +8,9 @@
port 8888 port 8888
</source> </source>
# output tag=sensor.** to Wendelin, this will match all HTTP request like so # This will match all HTTP request like so
# ivan@debian: ~$ curl -X POST -d 'json={"foo1":"bar1"}' http://localhost:8888/default_http_json # ivan@debian: ~$ curl -X POST -d 'json={"foo1":"bar1"}' http://localhost:8888/default_http_json
# then send to Wendelin and append as strings at Wendelin side
<match default_http_json.**> <match default_http_json.**>
@type wendelin @type wendelin
@id wendelin_out @id wendelin_out
...@@ -28,17 +29,18 @@ ...@@ -28,17 +29,18 @@
@type tail @type tail
path test.log path test.log
pos_file test.log.pos pos_file test.log.pos
tag fluentd-1 tag test_sensor.test_product
<parse> <parse>
@type none @type none
</parse> </parse>
</source> </source>
<match fluentd-1>
# This will send and streo at Wendelin side in a MsgPack format
<match test_sensor.test_product>
@type wendelin @type wendelin
@id wendelin_out @id fluentd_out
streamtool_uri <Wendelin_URL>/erp5/portal_ingestion_policies/default_http_json streamtool_uri <Wendelin_URL>/erp5/portal_ingestion_policies/default
# TODO ^^^ do not check peer's certificate # TODO ^^^ do not check peer's certificate
user <your_wendelin_user> user <your_wendelin_user>
password <your_wendelin_password> password <your_wendelin_password>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment