dumbproxy-log-monitor

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 25 Imported by: 0

README

DumbProxy log monitor

A simple application for creating a report over dumbproxy logs and sending it to an email.

Usage

Usage of ./dumbproxy-log-monitor:
  -dbPath string
    	DB path (default "/tmp/dumbproxy-log-monitor-test.db")
  -logCmd string
    	CMD for logs (default "sudo journald -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")

Configs

secrets/mailer.json
{
  "host": "smtp.example.com",
  "port": "587",
  "user": "SMTP user",
  "password": "SMTP password",
  "sender": "my-email@example.com"
}

Report example

Report example

Build

Latest Linux x86_64

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL