Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```