Logstalgia
13:37, 22 gruodžio 2018 versija, sukurta 80.240.8.28 (Aptarimas)
MacOS Install
Reikia turėti jau įdiegtus MacPorts, tuomet terminale rašyti:
sudo port install logstalgia
Arba jeigu turite brew
brew install logstalgia
Multiple serveriu log failai
#!/bin/bash
declare -a arr=("server1" "server2" "server3")
for i in "${arr[@]}"
do
ssh "$i" tail --follow=name /var/log/apache2/access.log &
done | logstalgia --sync
Serverio vietoje galima deti visa ssh su parametrais
#!/bin/bash
declare -a arr=(
"ssh root@app.serverys.lt tail --follow=name /var/log/nginx/access.log"
"ssh root@app2.serverys.lt tail --follow=name /var/log/nginx/access.log"
"ssh root@app3.serverys.lt tail --follow=name /var/log/nginx/access.log")
for i in "${arr[@]}"
do
$i
done | logstalgia --sync