Giter Site home page Giter Site logo

hello-fluentd-gcs's Introduction

Hello Fluentd GCS

Fluentd の Google Cloud Storage の出力プラグインのテストサンプルです。

出力プラグインの種類

2019年8月現在公式ページにて、以下の出力プラグインが見つかります。 今回は、fluent-plugin-gcs を使用します。

fluent-plugin-gcs fluent-plugin-google-cloud-storage fluent-plugin-google-cloud-storage-out
Star 20 13 5
最初のリリース 2016/11/27 2014/09/30 2016/08/01
最後のリリース 2019/05/31 2016/02/09 2016/01/12

インストール

make install

Bucket 名

Bucket 名は全世界で一意である必要があります。 そのため、デフォルトではプロジェクト名を入れて一意なバケット名になるようになっています。 もしこの動作が問題がある場合は、Makefile を書き換えるか、 makefile の起動時に名前を変更してください。

make fluentd BUCKET_NAME=your-bucket-name

ローカルでプログラムを fluentd とテストする方法

make fluentd

# Open another terminal
make log LOG_INTERVAL=1   # Slow rate log injection
make log                  # Max rate log injection
  • fluentd がログローテートを検出しながらデータを取り込みます。
  • 設定された、flush_interval の間隔で GCS にファイルを書き込みます。

GCS のデバッグ

make list  # Bucket 内のファイルがリストされます。
cp r gs://xxxxxx . # Bucket をコピーします。
make rm

hello-fluentd-gcs's People

Contributors

shidokamo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.