loggy

command module
v0.0.0-...-370f211 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 6 Imported by: 0

README

Loggy

Log files, the reader of the files with the same name spread through the hosts in the cloud.

Usage

loggy [scope] [remote_file] [local_file]

Config

The pool of SSH nodes has to be stored in the ~/.config/loggy/pool.yml file in the structured way to get accessed by the scope argument.

foo:
  staging:
    - user@node1.example.com
    - user@node2.example.com
    - user@node3.example.com
  production:
    - user1@node.example.com:2222
    - user2@node.example.com:2223
Commands Example
loggy /foo/staging var/log/system.log system.log
loggy /foo/staging --tail -n 1000 var/log/system.log system.log
loggy /foo/staging --head -n 1000 /var/www/html/var/log/system.log ~/Downloads/system.log
loggy /foo/staging -i ~/.ssh/custom_rsa var/log/system.log system.log
loggy /foo/staging -p ~/pool.yml var/log/system.log system.log

Test

go test ./...

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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