Sha256: 78703f5c5c0e1a267cdbb18f7dd0dd6fbf52166473ac6b64e7c1c8b2ee9b1363

Contents?: true

Size: 1.82 KB

Versions: 1

Compression:

Stored size: 1.82 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>

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

1 entries across 1 versions & 1 rubygems

Version Path
fluent-plugin-wendelin-0.4 example/to_wendelin.conf