From 2294ac77a8a69b1962e06264ae0f4c250e5365ff Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 20 Jan 2023 00:34:27 +0100 Subject: doc/log-forward: add tips and tricks --- doc/log-forward.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/log-forward.md b/doc/log-forward.md index 250dbf9..6faa27e 100644 --- a/doc/log-forward.md +++ b/doc/log-forward.md @@ -66,6 +66,18 @@ Also notification settings are required for [matrix](mod/notification-matrix.md) and/or [telegram](mod/notification-telegram.md). +Tips & Tricks +------------- + +### Notification on reboot + +You want to receive a notification on every device (re-)boot? Quite easy, +just add: + + :global LogForwardIncludeMessage "(^router rebooted)"; + +This will match on every log message beginning with `router rebooted`. + --- [⬅️ Go back to main README](../README.md) [⬆️ Go back to top](#top) -- cgit v1.2.3-54-g00ecf