Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

phucpnt/docker-google-stackdriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

Purpose

Setup a container that would receiving the log from other docker container and send to google stackdriver

Usage

  • From the GCP panel, download your service key for write log into your stackdriver. Download the file and renamed it to application_default_credentials.json

  • Run the docker

    docker run -p 5514:514 -v /Users/phucpnt/projects/google-stackdriver-log/application_d efault_credentials.json:/etc/google/auth/application_default _credentials.json -v /Users/phucpnt/projects/google-stackdriver-log/google-fluent d.conf:/etc/google-fluentd/google-fluentd.conf -e "GOOGLE_APPLICATION_CREDENTIALS=/etc/google/auth/application _default_credentials.json" --name=google-log phucpnt/google-stackdriver-log

  • Remember to assign the following environment for location of the stackdriver log:

  • Set the other docker instance to use fluentd driver for log. Eg. docker run --log-driver=fluentd --log-opt fluentd-address=127.0.0.1:5514 phucpnt/log-test

Limitation

  • You can not change the VM_ID dynamically in the stackdriver log base on the docker instance.

About

A container to send log to google stackdriver.

Topics

Resources

Readme

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors