https://github.com/tilfin/gostackdriver
Redirecting stdin to Google Stackdriver for UNIX/Linux pipe
https://github.com/tilfin/gostackdriver
googlecloudplatform stackdriver-logs
Last synced: 6 months ago
JSON representation
Redirecting stdin to Google Stackdriver for UNIX/Linux pipe
- Host: GitHub
- URL: https://github.com/tilfin/gostackdriver
- Owner: tilfin
- License: mit
- Created: 2018-08-29T14:01:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-29T14:01:48.000Z (over 7 years ago)
- Last Synced: 2025-03-30T12:16:48.295Z (11 months ago)
- Topics: googlecloudplatform, stackdriver-logs
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gostackdriver
Redirecting stdin to Google Stackdriver for UNIX/Linux pipe
## Build
```
$ go build -o gostackdriver main.go
```
### for Raspberry Pi
```
$ GOOS=linux GOARCH=arm go build -o gostackdriver main.go
```
## Usage
```
$ ./gostackdriver -h
Usage:
gostackdriver [OPTIONS]
Application Options:
-l, --log-id= LOG_ID
-p, --project-id= PROJECT_ID
Help Options:
-h, --help Show this help message
```
### Example
```
$ tail -F /var/log/application.log | GOOGLE_APPLICATION_CREDENTIALS=~/keyfile.json ./gostackdriver -l app -p your-project-1234
```
## Setup a Service Account key file
https://cloud.google.com/iam/docs/creating-managing-service-account-keys