Skip to content

Redirecting stdin to Google Stackdriver for UNIX/Linux pipe

License

Notifications You must be signed in to change notification settings

tilfin/gostackdriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Redirecting stdin to Google Stackdriver for UNIX/Linux pipe

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages