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 [email protected] -f /var/log/nginx/access.log
# multiple server
rtail [email protected],[email protected],[email protected] -f /var/log/nginx/access.log
Use Config File
rtail -config.file=example.json
Config Example
[
{
"name" : "nginx",
"server_addresses" : [
"[email protected]",
"[email protected]",
"[email protected]"
],
"options" : ["-f", "-n 1"],
"file" : "/var/log/nginx/access.log"
},
{
"name" : "apps",
"server_addresses" : [
"[email protected]",
"[email protected]"
],
"options" : ["-f", "-n 1"],
"file" : "/var/log/apps/apps.log"
}
]