hi
for some time i have been strugling with remote loging in syslog. i have made it to a level that i can sort messages in rsyslog to separate files. problem is with failed logins.
this is my /system logging export
/system logging action
set memory memory-lines=300 memory-stop-on-full=no name=memory target=memory
set disk disk-file-count=2 disk-file-name=log disk-lines-per-file=100 disk-stop-on-full=no name=disk target=disk
set echo name=echo remember=yes target=echo
set remote bsd-syslog=yes name=remote remote=x:514 src-address=0.0.0.0 syslog-facility=daemon syslog-severity=auto target=remote
add bsd-syslog=yes name=authremotefailed remote=x:514 src-address=0.0.0.0 syslog-facility=auth syslog-severity=error target=remote
add bsd-syslog=yes name=authremoteok remote=x:514 src-address=0.0.0.0 syslog-facility=auth syslog-severity=info target=remote
/system logging
add action=memory disabled=no prefix="" topics=info
add action=memory disabled=no prefix="" topics=error
add action=memory disabled=no prefix="" topics=warning
add action=echo disabled=no prefix="" topics=critical
add action=authremoteok disabled=no prefix=--ACCOUNT-- topics=account
add action=remote disabled=no prefix="" topics=radius
add action=remote disabled=no prefix="" topics=backup
add action=remote disabled=no prefix=--WIRELESS-- topics=wireless,!debug,!info
add action=remote disabled=no prefix=--SYSTEM-- topics=system
add action=remote disabled=no prefix="" topics=ppp
add action=remote disabled=no prefix="" topics=pppoe
add action=remote disabled=no prefix="" topics=firewall
add action=remote disabled=no prefix="" topics=script
add action=authremotefailed disabled=no prefix=--ACCOUNT-- topics=system,error,critical
in rsyslog i sort messages by prefix. --ACCOUNT-- goes to account.log --SYSTEM goes to system.log etc. everything else goes to reszta.log. problem is when someone fails to log. message is duplicated and sent to account.log (becouse of prefix) and to system.log.
how to resolve problem ?
how to understand topics in mirotik logging ?
if i specify a single add line that have topics “system,error,critical” and action remote does it mean that i will log messages only containing system,error,critical or any variation of it ? like i get message with error and it will be sent to remote syslog.