Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arussellsaw/glog
A CLI tool to query & tail Google Cloud Logging entries
https://github.com/arussellsaw/glog
golang google google-cloud-platform logging tail
Last synced: about 1 month ago
JSON representation
A CLI tool to query & tail Google Cloud Logging entries
- Host: GitHub
- URL: https://github.com/arussellsaw/glog
- Owner: arussellsaw
- Created: 2021-02-06T12:18:24.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-07T16:31:52.000Z (about 4 years ago)
- Last Synced: 2024-06-20T16:43:51.474Z (8 months ago)
- Topics: golang, google, google-cloud-platform, logging, tail
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Glog, a cli for Google Cloud Logging
I don't like viewing logs via web UIs, so i built this tool to be able to easily tail logs from my terminal.
### Some examples:
Tail logs for service.foo
```
glog -f -p my-project -q 'resource.labels.service_name = "service.foo"'
```
Get all logs from your project for the last 24h
```
glog -d 24h -p my-project
```You can learn more about how to build queries for the -q parameter at https://cloud.google.com/logging/docs/view/query-library-preview?hl=en-GB
#### Usage:
```
glog -help
-d string
lookback duration, eg '1h' or '30s' (default "1h")
-f follow the logs, like tail -f
-p string
your project ID
-q string
log query```