百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

fluent-plugin-google-cloud

> 编程语言
开源

一个用于将日志发送到 Google Cloud 平台日志接收 API 的 Fluentd 插件。

185 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个用于将日志发送到 Google Cloud 平台日志接收 API 的 Fluentd 插件。

= Google Cloud Logging plugin for {fluentd}[http://github.com/fluent/fluentd]

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

  1. A {filter plugin for fluentd}[https://docs.fluentd.org/filter] that embeds insertIds into log entries to guarantee order and uniqueness.
  2. An {output plugin for fluentd}[https://docs.fluentd.org/output] which sends logs to the {Stackdriver Logging API}[https://cloud.google.com/logging/docs/api/].

This is an official Google Ruby gem.

{}[http://badge.fury.io/rb/fluent-plugin-google-cloud] {}[https://travis-ci.org/GoogleCloudPlatform/fluent-plugin-google-cloud]

== Installation

This gem is hosted at {RubyGems.org}[https://rubygems.org/gems/fluent-plugin-google-cloud] and can be installed using:

$ gem install fluent-plugin-google-cloud

Installing {google-fluentd}[https://cloud.google.com/logging/docs/agent/] will also install and configure the gem.

== Configuration

To embed insertIds into log entries, specify @type add_insert_ids in a {filter clause}[https://docs.fluentd.org/configuration/config-file#3-filter-event-processing-pipeline] of your Fluentd configuration file, for example:

  @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}[https://docs.fluentd.org/configuration/config-file#2-match-tell-fluentd-what-to-do] of your Fluentd configuration file, for example:

  @type google_cloud

See detailed instructions on how to configure this output plugin {here}[https://cloud.google.com/logging/docs/agent/configuration#cloud-fluentd-config]. The plugin uses {Google Application Default Credentials}[https://developers.google.com/identity/protocols/application-default-credentials] for authorization - for additional information see {here}[https://cloud.google.com/logging/docs/agent/authorization].

== Copyright

Copyright:: Copyright 2014 Google Inc. All rights reserved. License:: Apache License, Version 2.0

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言