fluent/fluentd

View on GitHub
example/logevents.conf

Summary

Maintainability
Test Coverage
<source>
  @type sample
  @label @samplelog
  tag "data"
  sample {"message":"yay"}
</source>
<label @samplelog>
  <match **>
    @type stdout
  </match>
</label>
<label @FLUENT_LOG>
  <match fluent.debug fluent.info fluent.warn fluent.error fluent.fatal>
    @type stdout
    <inject>
      hostname_key "host"
    </inject>
  </match>
  # <match fluent.{info,warn,error,fatal}>
  #   @type stdout
  #   <inject>
  #     hostname_key "host"
  #   </inject>
  # </match>
</label>