Skip to content

Instantly share code, notes, and snippets.

@jlamoree
Created December 31, 2022 23:07
Show Gist options
  • Save jlamoree/8a22287e673f073231020b23afe2e15e to your computer and use it in GitHub Desktop.
Save jlamoree/8a22287e673f073231020b23afe2e15e to your computer and use it in GitHub Desktop.
pflogsumm report
#!/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