Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jkawamoto/docker-google-fluentd

A Container logging other containers logs to Google Cloud Logging.
https://github.com/jkawamoto/docker-google-fluentd

Last synced: 13 days ago
JSON representation

A Container logging other containers logs to Google Cloud Logging.

Awesome Lists containing this project

README

        

# Docker Google Fluentd
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
[![Release](https://img.shields.io/badge/release-1.0.2-brightgreen.svg)](https://github.com/jkawamoto/docker-google-fluentd/releases/tag/v1.0.2)
[![Dockerhub](https://img.shields.io/badge/dockerhub-jkawamoto%2Fdocker--google--fluentd-blue.svg)](https://hub.docker.com/r/jkawamoto/docker-google-fluentd/)
[![Image information](https://images.microbadger.com/badges/image/jkawamoto/docker-google-fluentd.svg)](http://microbadger.com/images/jkawamoto/docker-google-fluentd)

A Container logging other containers logs to Google Cloud Logging.

## Preparation

Build an image:

```sh
$ docker build -t jkawamoto/docker-google-fluentd .
```

or just pull the image from Docker Hub:

```sh
$ docker pull jkawamoto/docker-google-fluentd
```

## Usage
```sh
$ docker run -d --name fluentd -e "INSTANCE=some-name" \
-v /var/lib/docker:/var/lib/docker jkawamoto/docker-google-fluentd
```
where environment variable **INSTANCE** is used to add the instance name to each log record.

### Other environment variables

#### TAG
Customizes the tag of log records
and which log those records will be stored in Google Cloud Logging.
See [API document of Google Cloud Logging](https://cloud.google.com/logging/docs/api/) for more details.

#### USERNAME
Used to add a username field to each log record.

## License
This software is released under the MIT License, see [LICENSE](LICENSE).