Forum Discussion
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::cl...
nitass_89166
Noctilucent
this is mine.
// config
[root@ve13a:Active:In Sync] config cat user_alert.conf
alert TEST "Rejecting this request (.*)" {
email toaddress=
fromaddress="root@bigip.local"
body="The test of this Solution worked!"
}
// log
[root@ve13a:Active:In Sync] config tail /var/log/ltm
Dec 29 18:42:49 ve13a info root: Rejecting this request 1.2.3.4
// email
-----Original Message-----
From: root@bigip.local [mailto:root@bigip.local]
Sent: Friday, December 29, 2017 6:43 PM
To:
Subject: Rejecting this request 1.2.3.4
The test of this Solution worked!
bsb
Dec 29, 2017Nimbostratus
wonderful, it worked. thanks. so alert TEST "Rejecting this request (.*)" checks the log file with string starting with "rejecting"
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects