sternom

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

Sternom

Installation

go get github.com/korchasa/sternom
sternom --help

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")
  -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)
  -v, --version          Print the version and exit

Examples

Tail old records by job prefix:

sternom ovc

old records

Skip old records and follow logs by allocation id:

sternom 2b79b1e1 --follow --tail 0

old records

Watch for 404 errors from 95.217.226.19, but skip Build/OPM1.171019.026 user-agent:

sternom mp3 --follow | grep "nginx" | grep " 404 " | grep -v "Build/OPM1.171019.026"| grep "95.217.226.19"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL