Fluentd output plugin for the Stackdriver Logging API, which will make logs viewable in the Developer Console's log viewer and can optionally store them in Google Cloud Storage and/or BigQuery. This is an official Google Ruby gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.1
~> 10.3
~> 0.35.0
~> 3.0
~> 1.17

Runtime

< 0.15.0, ~> 0.12
< 0.10.0, ~> 0.9.0
< 0.5, ~> 0.4
< 1.2.0, ~> 1.1.0
< 1.9, ~> 1.8
 Project Readme

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.

  2. An output plugin for fluentd which sends logs to the Stackdriver Logging API.

This is an official Google Ruby gem.

<img src=“https://badge.fury.io/rb/fluent-plugin-google-cloud.svg” alt=“Gem Version” /> <img src=“https://secure.travis-ci.org/GoogleCloudPlatform/fluent-plugin-google-cloud.png” alt=“Build Status” />

Installation¶ ↑

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.

Configuration¶ ↑

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.
</filter>

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
</match>

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

Copyright 2014 Google Inc. All rights reserved.

License

Apache License, Version 2.0