log-forward: pass origin to $SendNotification2

This commit is contained in:
Christian Hesse 2021-04-27 21:50:44 +02:00
parent fe9754c693
commit 87cbc1edad

View file

@ -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) \