fluent-bit-go-gcs

command module
v0.0.0-...-2297314 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL