Sha256: e38b1c4d9e7384f6769c1ab1e3dcdfbbf648cd856d82c7b001ba0d344f7ed3f0

Contents?: true

Size: 1.8 KB

Versions: 4

Compression:

Stored size: 1.8 KB

Contents

# 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>
  @type http
  @id http_input
  port 8888
</source>


## output tag=sensor.** to Wendelin
<match <YOUR_SENSOR_TAG>.**>
  @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>
  password  <your_wendelin_password>

  # 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
</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>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fluent-plugin-wendelin-0.3 example/to_wendelin.conf
fluent-plugin-wendelin-0.2 example/to_wendelin.conf
fluent-plugin-wendelin-0.1 example/to_wendelin.conf
fluent-plugin-wendelin-0.1.alpha1 example/to_wendelin.conf