under /etc/csf/csf.conf
Code: Select all
CUSTOM1_LOG = "/var/log/asterisk/full"
Code: Select all
#CUSTOM1_LOG:
if (($lgfile eq $config{CUSTOM1_LOG}) and ($line =~ /^.* failed for .* - No matching peer found/ )) {
return ("Failed Asterisk login from",$1,"myasteriskmatch","3","5060","1");
}
Code: Select all
[Sep 10 01:24:09] NOTICE[1914] chan_sip.c: Registration from '<sip:200se@demo1.mydomain.xxx>' failed for '111.222.333.444:59509' - No matching peer found
[Sep 10 01:32:37] NOTICE[1914] chan_sip.c: Registration from '<sip:200se@demo1.mydomain.xxx>' failed for '111.222.333.444:51686' - No matching peer found
Code: Select all
awk '/^.* failed for .* - No matching peer found/' /var/log/asterisk/full