https://github.com/korchasa/sternom
Tail multiple allocations in Nomad. Inspired by wercker/stern
https://github.com/korchasa/sternom
hashicorp-nomad logging nomad ops tail
Last synced: 5 months ago
JSON representation
Tail multiple allocations in Nomad. Inspired by wercker/stern
- Host: GitHub
- URL: https://github.com/korchasa/sternom
- Owner: korchasa
- License: apache-2.0
- Created: 2021-04-11T10:17:45.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-14T09:53:38.000Z (over 3 years ago)
- Last Synced: 2024-06-21T03:13:25.950Z (about 2 years ago)
- Topics: hashicorp-nomad, logging, nomad, ops, tail
- Language: Go
- Homepage:
- Size: 8.25 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sternom
## Installation
```bash
go get github.com/korchasa/sternom
sternom --help
```
### Docker
Images: https://github.com/korchasa/sternom/pkgs/container/sternom
## Usage
```
Tail multiple jobs and allocations from Nomad
Usage:
sternom job-or-alloc-prefix [flags]
Flags:
-a, --address string The address of the Nomad server. Overrides the NOMAD_ADDR environment variable if set. (default "NOMAD_ADDR")
--color string Color output. Can be 'always', 'never', or 'auto' (default "auto")
-e, --exclude -e a -e b Exclude log records by pattern. Multiple filters: -e a -e b or `-e a,b`
-i, --filter -i a -i b Filter log records by pattern. Multiple filters: -i a -i b or `-i a,b`
-f, --follow Whether the logs should be followed
-h, --help help for sternom
-n, --new Shorthand for --follow and --tail 0
--stderr Show only stderr log
--stdout Show only stdout log
-t, --tail int The number of bytes from the end of the logs to show. Defaults to -1, showing all logs. (default -1)
--task string Show logs only for one task
-v, --version Print the version and exit
```
