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 [email protected] tail --follow=name /var/log/nginx/access.log"
"ssh [email protected] tail --follow=name /var/log/nginx/access.log"
"ssh [email protected] tail --follow=name /var/log/nginx/access.log")
for i in "${arr[@]}"
do
$i
done | logstalgia --sync