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 # 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 input
# http://localhost:8888/<tag>?json=<json> # http://localhost:8888/<tag>?json=<json>
<source> <source>
...@@ -18,75 +9,17 @@ ...@@ -18,75 +9,17 @@
</source> </source>
## output tag=sensor.** to Wendelin ## output tag=sensor.** to Wendelin, this will match all HTTP request like so
<match <YOUR_SENSOR_TAG>.**> ## curl -X POST -d 'json={"foo1":"bar1"}' http://localhost:8888/http_json
@type wendelin <match http_json.**>
@type wendelin
@id wendelin_out @id wendelin_out
streamtool_uri <Wendelin_URL>/erp5/portal_ingestion_policies/<YOUR_INGESTION_POLICY_ID>
streamtool_uri <Wendelin_URL>/erp5/portal_ingestion_policies/<YOUR_INGESTION_POLICY_ID> # 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>
use_keep_alive true use_keep_alive true
buffer_type memory
# all parameters of BufferedOutput & Output classes are supported too, e.g. flush_interval 5s
# `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
</match> </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