Fluentd plugins for the Stackdriver Logging API, which will make logs viewable in the Stackdriver Logs Viewer and can optionally store them in Google Cloud Storage and/or BigQuery. This is an official Google Ruby gem.

gem install fluent-plugin-google-cloud -v 0.7.20


Google Cloud Logging plugin for fluentd

fluent-plugin-google-cloud gem includes two plugins:

  1. A filter plugin for fluentd

that embeds insertIds into log entries to guarantee order and uniqueness.

  1. An output plugin for fluentd

which sends logs to the Stackdriver Logging API.

This is an official Google Ruby gem.

Version Build Status


This gem is hosted at RubyGems.org and can be installed using:

$ gem install fluent-plugin-google-cloud

Installing google-fluentd will also install and configure the gem.


To embed insertIds into log entries, specify @type add_insert_ids in a filter clause of your Fluentd configuration file, for example:

<filter **>
  @type add_insert_ids
  insert_id_key my_insert_id_field_name # Optional.

insert_id_key can be used to customize the insertId field name.

To send logs to Google Cloud Logging, specify @type google_cloud in a match clause of your Fluentd configuration file, for example:

<match **>
  @type google_cloud

See detailed instructions on how to configure this output plugin here. The plugin uses Google Application Default Credentials for authorization - for additional information see here.



Copyright 2014 Google Inc. All rights reserved.


Apache License, Version 2.0