Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- LINES=150
- LOG=/logs/everything.log
- IGNORE="'U7PG2|cron|no matching key|[Ii]nvalid user|preauth|Timeout before auth|service=retention|-- MARK --|Log statistics|ntpd|tsm1|last message repeated'"
- CURLOG="egrep -ve $IGNORE $LOG | tail -n $LINES"
- NOWLOG="tail -Fn 0 $LOG | egrep -ve $IGNORE"
- ssh tail@data "$CURLOG && $NOWLOG" | ccze -A
Add Comment
Please, Sign In to add comment