aboutsummaryrefslogtreecommitdiffstats
path: root/log-forward
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-04-27 21:50:44 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-04-28 13:58:37 +0200
commit87cbc1edadddaae330d58b23cc101d8ab5abddc6 (patch)
tree352683bf1374c66dbdd2c681e7c508a62c3b7694 /log-forward
parentfe9754c6939fb58dd0d9d2cd281e8dcf9cd9a128 (diff)
log-forward: pass origin to $SendNotification2
Diffstat (limited to 'log-forward')
-rw-r--r--log-forward3
1 files changed, 2 insertions, 1 deletions
diff --git a/log-forward b/log-forward
index 74aaeb4..8f72893 100644
--- a/log-forward
+++ b/log-forward
@@ -71,7 +71,8 @@ $WaitFullyConnected;
}
:if ($Count > 0) do={
- $SendNotification2 ({ subject=([ $SymbolForNotification "warning-sign" ] . "Log Forwarding"); \
+ $SendNotification2 ({ origin=$0; \
+ subject=([ $SymbolForNotification "warning-sign" ] . "Log Forwarding"); \
message=("The log on " . $Identity . " contains " . [ $IfThenElse ($Count = 1) \
"this message" ("these " . $Count . " messages") ] . " after " . \
[ / system resource get uptime ] . " uptime." . [ $IfThenElse ($Duplicates = true) \