Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefanvanburen/nomadlogs
CLI for combining logs from multiple nomad jobs / tasks / allocations into a single stream.
https://github.com/stefanvanburen/nomadlogs
go logs nomad
Last synced: about 1 month ago
JSON representation
CLI for combining logs from multiple nomad jobs / tasks / allocations into a single stream.
- Host: GitHub
- URL: https://github.com/stefanvanburen/nomadlogs
- Owner: stefanvanburen
- License: mit
- Created: 2021-12-22T16:27:40.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-15T19:12:30.000Z (over 2 years ago)
- Last Synced: 2024-06-20T00:27:52.048Z (5 months ago)
- Topics: go, logs, nomad
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nomadlogs
CLI for combining logs from multiple [Nomad](https://github.com/hashicorp/nomad) jobs / tasks / allocations into a single stream.
## Installation
If you have `go` installed, you can install the binary with:
```sh
go install github.com/stefanvanburen/nomadlogs@latest
```## Running
```sh
nomadlogs watch -jobs job1:task1,job2:task1,job2:task2
```By default, nomadlogs will use the [Nomad `api` package's](https://github.com/hashicorp/nomad/tree/main/api) default configuration for Nomad at [`http://127.0.0.1:4646`](https://github.com/hashicorp/nomad/blob/34959b26dfdab25d794719757ad2c486acd32787/api/api.go#L284).
Also, if you're forwarding another instance of Nomad to another port, say `:4647`, you can run:
```sh
nomadlogs -addr "http://localhost:4647" watch -jobs job1:task1,job2:task1,job2:task2
```