From ed9ee59e8edd70b8496047b536535b3ce8b31a90 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Fri, 14 Jun 2024 15:16:26 -0400 Subject: [PATCH] Emphasize that start_at_end applies to new logs --- README.md | 2 +- cmd/certspotter/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b54d902..90ce140 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Cert Spotter requires Go version 1.19 or higher. 4. Configure your system to run `certspotter` as a daemon. You may want to specify the `-start_at_end` command line option to tell certspotter to start monitoring - logs at the end instead of the beginning. This saves significant bandwidth, but + new logs at the end instead of the beginning. This saves significant bandwidth, but you won't be notified about certificates which were logged before you started using certspotter. diff --git a/cmd/certspotter/main.go b/cmd/certspotter/main.go index 7779457..8d5e1c8 100644 --- a/cmd/certspotter/main.go +++ b/cmd/certspotter/main.go @@ -173,7 +173,7 @@ func main() { flag.StringVar(&flags.logs, "logs", defaultLogList, "File path or URL of JSON list of logs to monitor") flag.BoolVar(&flags.noSave, "no_save", false, "Do not save a copy of matching certificates in state directory") flag.StringVar(&flags.script, "script", "", "Program to execute when a matching certificate is discovered") - flag.BoolVar(&flags.startAtEnd, "start_at_end", false, "Start monitoring logs from the end rather than the beginning (saves considerable bandwidth)") + flag.BoolVar(&flags.startAtEnd, "start_at_end", false, "Start monitoring new logs from the end rather than the beginning (saves considerable bandwidth)") flag.StringVar(&flags.stateDir, "state_dir", defaultStateDir(), "Directory for storing log position and discovered certificates") flag.BoolVar(&flags.stdout, "stdout", false, "Write matching certificates to stdout") flag.BoolVar(&flags.verbose, "verbose", false, "Be verbose")