arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Stackdriver

Stackdriver output plugin allows to ingest your records into Google Cloud Stackdriver Loggingarrow-up-right service.

Before to get started with the plugin configuration, make sure to obtain the proper credentials to get access to the service. We strongly recommend to use a common JSON credentials file, reference link:

  • Creating a Google Service Account for Stackdriverarrow-up-right

Your goal is to obtain a credentials JSON file that will be used later by Fluent Bit Stackdriver output plugin.

hashtag
Configuration Parameters

hashtag
Configuration File

If you are using a Google Cloud Credentials File, the following configuration is enough to get started:

hashtag
Troubleshooting Notes

hashtag
Upstream connection error

Github reference:

An upstream connection error means Fluent Bit was not able to reach Google services, the error looks like this:

This belongs to a network issue by the environment where Fluent Bit is running, make sure that from the Host, Container or Pod you can reach the following Google end-points:

hashtag
Other implementations

Stackdriver officially supports a .

global

Key

Description

default

google_service_credentials

Absolute path to a Google Cloud credentials JSON file

Value of environment variable $GOOGLE_SERVICE_CREDENTIALS

service_account_email

Account email associated to the service. Only available if no credentials file has been provided.

Value of environment variable $SERVICE_ACCOUNT_EMAIL

service_account_secret

Private key content associated with the service account. Only available if no credentials file has been provided.

Value of environment variable $SERVICE_ACCOUNT_SECRET

resource

#761arrow-up-right
https://www.googleapis.comarrow-up-right
https://logging.googleapis.comarrow-up-right
logging agent based on Fluentdarrow-up-right

Set resource type of data. Only global is supported.

[INPUT]
    Name  cpu
    Tag   cpu

[OUTPUT]
    Name        stackdriver
    Match       *
[2019/01/07 23:24:09] [error] [oauth2] could not get an upstream connection