Low commit activity in last 3 years
A long-lived project that still receives updates
This gem will forward output from fluentd to Barito-Flow
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 0.8.21
~> 12.0
~> 3.4
~> 3.2
~> 0.9.1
~> 3.4

Runtime

>= 0.12.0, ~> 0.12
 Project Readme

fluent-plugin-barito

Build Status

Fluentd output plugin for BaritoLog.

Installation

RubyGems

$ gem install fluent-plugin-barito

Bundler

Add following line to your Gemfile:

gem 'fluent-plugin-barito'

And then execute:

$ bundle

Configuration

You can generate configuration template:

$ fluent-plugin-config-format output barito

You can copy and paste generated documents here.

Fluentd configuration example

Without Kubernetes

Use type barito_vm for deployment without kubernetes

<source>
  @type tail
  tag "barito"
  path /path/to/file.log
  <parse>
    @type none
  </parse>
</source>

<match barito>
  @type barito_vm

  application_secret "ABCDE1234"
  produce_url "http://receiver-host:receiver-port/str/1/st/2/fw/3/cl/4/produce/some-topic"
  <buffer>
    flush_mode immediate
  </buffer>
</match>

With Kubernetes

Change type to barito_batch_k8s.

<match kubernetes.var.log.containers.server-**.log>
  @type barito_batch_k8s
  name test_container
  cluster_name test_cluster
  application_name test_application_name
  application_group_secret xxxxxx
  produce_url https://router.barito/produce_batch
  <buffer>
    flush_at_shutdown false
    flush_thread_count 8
    flush_thread_interval 1
    flush_thread_burst_interval 1
    flush_mode interval
    flush_interval 1s
    queued_chunks_limit_size 1
    overflow_action drop_oldest_chunk
    retry_timeout 0s
    retry_max_times 0
    disable_chunk_backup true
  </buffer>
</match>

Copyright

  • Copyright(c) 2018- BaritoLog
  • License
    • Apache License, Version 2.0