Skip to content

alileza/rtail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Remote Tail

Simple go package to tail log remotely.

Getting Started

go get -u github.com/alileza/rtail
usage: rtail [<servers>] [-F | -f | -r] [-q] [-b # | -c # | -n #] <file>

# single server
rtail root@192.168.100.160 -f /var/log/nginx/access.log

# multiple server
rtail root@192.168.100.160,root@192.168.100.161,root@192.168.100.162 -f /var/log/nginx/access.log

Use Config File

rtail -config.file=example.json

Config Example

[
    {
        "name" : "nginx",
        "server_addresses" : [
            "root@192.168.100.160",
            "root@192.168.100.161",
            "root@192.168.100.162"
        ],
        "options" : ["-f", "-n 1"],
        "file" : "/var/log/nginx/access.log"
    },
    {
        "name" : "apps",
        "server_addresses" : [
            "root@192.168.100.170",
            "root@192.168.100.171"
        ],
        "options" : ["-f", "-n 1"],
        "file" : "/var/log/apps/apps.log"
    }
]

About

Simple go package to tail log remotely.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages