A simple application for creating a report over dumbproxy logs and sending it to an email.
Usage of ./dumbproxy-log-monitor:
-dbDir string
DB directory (default "/tmp/dumbproxy-log-monitor-test-db")
-logCmd string
CMD for logs (default "sudo journalctl -fu dumbproxy.service")
-logCmdDir string
CWD for log CMD (default ".")
-mailerConfig string
Config for mailer (default "secrets/mailer.json")
-printReport
Print report to STDOUT
-reportMail string
Email to send reports
-reportTime string
Report UTC time in format 22:00:00 (default "22:00:00")
-scheduleInterval duration
Interval for scheduler tasks scan (default 2s)
{
"host": "smtp.example.com",
"port": "587",
"user": "SMTP user",
"password": "SMTP password",
"sender": "[email protected]"
}
Latest Linux x86_64