bsb
Dec 29, 2017Nimbostratus
iRule to trigger email for captured logs
team, have an iRule for capturing logs which works as expected. now i would like to send the log which was captured with commment.
irule used
when CLIENT_ACCEPTED { if { not [class match [IP::client_addr] equals datagrid] } { log local0. "Rejecting this request [IP::client_addr] " reject } }
requirement is to send the message "Rejecting this request [IP::client_addr] " via mail.
tried with test mail like below case including in above iRule, but didnt succeed. echo "ssmtp test mail" | mail -vs "Rejecting this request [IP::client_addr] " myemail@mydomain.com