Commit 7e9f97fe authored by Ivan Tyagov's avatar Ivan Tyagov

Simplify configuration by leaving only the necessary and prepare file to be...

Simplify configuration by leaving only the necessary and prepare file to be used for a Wendelin fluentd tutorial.
parent 79a327bf
# Example configuration of Wendelin output for Fluentd
## built-in TCP input, so we can accept messages from other fluentd(s) and so
## that fluent-cat works:
## $ echo <json|msgpack> | fluent-cat <tag>
<source>
@type forward
@id forward_input
</source>
# HTTP input
# http://localhost:8888/<tag>?json=<json>
<source>
......@@ -18,75 +9,17 @@
</source>
## output tag=sensor.** to Wendelin
<match <YOUR_SENSOR_TAG>.**>
@type wendelin
## output tag=sensor.** to Wendelin, this will match all HTTP request like so
## curl -X POST -d 'json={"foo1":"bar1"}' http://localhost:8888/http_json
<match http_json.**>
@type wendelin
@id wendelin_out
streamtool_uri <Wendelin_URL>/erp5/portal_ingestion_policies/<YOUR_INGESTION_POLICY_ID>
# TODO ^^^ do not check peer's certificate
user <your_wendelin_user>
streamtool_uri <Wendelin_URL>/erp5/portal_ingestion_policies/<YOUR_INGESTION_POLICY_ID>
# TODO ^^^ do not check peer's certificate
user <your_wendelin_user>
password <your_wendelin_password>
use_keep_alive true
# all parameters of BufferedOutput & Output classes are supported too, e.g.
# `buffer_type`, `flush_interval`, `num_threads`, `log_level`, etc - see
# their code near:
#
# https://github.com/fluent/fluentd/blob/master/lib/fluent/output.rb#L182
#
# logging setup description:
#
# http://docs.fluentd.org/articles/logging
buffer_type memory
#buffer_path "#{ENV['HOME']/var}"
flush_interval 5s
</match>
# ---- monitoring & debugging ----
# Listen HTTP for monitoring
# http://localhost:24220/api/plugins
# http://localhost:24220/api/plugins?type=TYPE
# http://localhost:24220/api/plugins?tag=MYTAG
<source>
@type monitor_agent
@id monitor_agent_input
port 24220
</source>
# Listen DRb for debug
<source>
@type debug_agent
@id debug_agent_input
bind 127.0.0.1
port 24230
</source>
## match tag=debug.** and dump to console
<match debug.**>
@type stdout
@id stdout_output
use_keep_alive true
buffer_type memory
flush_interval 5s
</match>
## match fluent's internal events
#<match fluent.**>
# @type null
#</match>
## match not matched logs and write to file
#<match **>
# @type file
# path /var/log/fluent/else
# compress gz
#</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