I try to configure get my template for remote logging working but the stop statement is ignored and everiting is logged duplicate in the syslog
and in my generated file %programname%.log
. I want the incoming messages only logged in %programname%.log
ZABBIX
is my local machine where the rsyslog deamon runs. And the remote devices are Sierra wireless devices that are logging to ZABBIX
. But everything from the Sierras is logged duplicate. This is my configuration in /etc/rsyslog.conf
.
$template remote-logs,"/media/jarne/Data/log/%FROMHOST%/%programname%.log", stop
:fromhost,isequal,"ZABBIX" stop
*.* ?remote-logs
I have also tried:
*.* ?remote-logs & stop
and *.* ?remote-logs;stop
, but I only get errors.
Can anyone tell me how the stop keyword works and where that is valid?
I use rsyslog version 8.32.0 on a Ubuntu 18.04.3. Thanks in advance!