kabuke / fluent-bit-go-gcs

Fluent-Bit output plugin for Google Cloud Storage

Home Page:https://quay.io/repository/universe-sh/fluent-bit-out-gcs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fluent-bit gcs output plugin

This plugin works with fluent-bit's go plugin interface. You can use fluent-bit-go-gcs to ship logs into GCP Storage.

The configuration typically looks like:

Fluent-Bit --> Google Cloud Storage <-- Google Cloud BigQuery

Usage

$ fluent-bit -e /path/to/built/out_gcs.so -c fluent-bit.conf

Prerequisites

  • Go 1.13+
  • gcc (for cgo)

Building

Library:

$ make

Container Image:

$ make build

Configuration Options

Key Description Default value Note
Credential Path of GCP credential - Mandatory parameter
Bucket Bucket name of GCS - Mandatory parameter
Prefix Prefix of GCS key - Mandatory parameter
Region Region of GCS - Mandatory parameter

Example:

add this section to fluent-bit.conf

[Output]
    Name 		gcs
    Match 		*
    Credential  /path/to/sharedcredentialfile
    Bucket      yourbucketname
    Prefix 		yourgcsprefixname
    Region 		europe-west1

About

Fluent-Bit output plugin for Google Cloud Storage

https://quay.io/repository/universe-sh/fluent-bit-out-gcs

License:Apache License 2.0


Languages

Language:Go 51.9%Language:Makefile 17.8%Language:Dockerfile 17.4%Language:Shell 13.0%