Logstalgia
Jump to navigation
Jump to search
MacOS Install[keisti]
Reikia turėti jau įdiegtus MacPorts, tuomet terminale rašyti:
sudo port install logstalgia
Arba jeigu turite brew
brew install logstalgia
Taip pat pasinaudojus appify arba platypus galima pasidaryti gražų macOS launcherį (aplikaciją).
Multiple serveriu log failai[keisti]
#!/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