GithubHelp home page GithubHelp logo

qpc-github / fluent-plugin-google-cloud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/fluent-plugin-google-cloud

1.0 2.0 1.0 1.51 MB

Plugin for Fluentd that sends logs to the Google Cloud Platform's log ingestion API.

License: Apache License 2.0

Ruby 100.00%

fluent-plugin-google-cloud's Introduction

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

fluent-plugin-google-cloud's People

Contributors

mr-salty avatar qingling128 avatar igorpeshansky avatar stackdriver-instrumentation-release avatar a-robinson avatar jkohen avatar laramiel avatar davidbtucker avatar bmoyles0117 avatar jkschulz avatar swalkowski avatar dhrupadb avatar munangst avatar draffensperger avatar stevenycchou avatar herohde avatar bokowski avatar rbuskens avatar jmikula avatar hakobera avatar cosmo0920 avatar wiktor2200 avatar sophieyfang avatar jefferbrecht avatar hsmatulisgoogle avatar ganmacs avatar vdm avatar tonymeng avatar stanhu avatar n0nick avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.