Commit 2b1c718b authored by Ivan Tyagov's avatar Ivan Tyagov

Add an example of tailing a file and sending it to Wendelin.

parent e661bab3
......@@ -8,7 +8,6 @@
port 8888
</source>
# output tag=sensor.** to Wendelin, this will match all HTTP request like so
# ivan@debian: ~$ curl -X POST -d 'json={"foo1":"bar1"}' http://localhost:8888/default_http_json
<match default_http_json.**>
......@@ -23,3 +22,28 @@
buffer_type memory
flush_interval 5s
</match>
# tail existing file and send its contents to Wendelin
<source>
@type tail
path test.log
pos_file test.log.pos
tag fluentd-1
<parse>
@type none
</parse>
</source>
<match fluentd-1>
@type wendelin
@id wendelin_out
streamtool_uri <Wendelin_URL>/erp5/portal_ingestion_policies/default_http_json
# TODO ^^^ do not check peer's certificate
user <your_wendelin_user>
password <your_wendelin_password>
use_keep_alive true
buffer_type memory
flush_interval 5s
</match>
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