Created
December 31, 2022 23:07
-
-
Save jlamoree/8a22287e673f073231020b23afe2e15e to your computer and use it in GitHub Desktop.
pflogsumm report
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
mailserver="mail.ec2.lamoree.net" | |
cd $(mktemp -d) | |
rsync --rsync-path="sudo rsync" -v -e ssh "${mailserver}:/var/log/maillog*" . | |
cat maillog* | docker run --rm -i -a stdin -a stdout docker.io/jlamoree/pflogsumm:latest > report.txt | |
subl report.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment