Forum Discussion
Dan_Markhasin_1
Nimbostratus
Oct 28, 2015Using ASM violation details in an iRule
Hi,
I am writing an iRule to log all ASM violations to a remote syslog server. I am trying to get as much data as possible (what was the payload, what was the violation, etc). Based on the document...
Dan_Markhasin_1
Nimbostratus
Jan 28, 2016Because we need the logs to be in a very specific format and include information that ASM does not provide (various identifying strings that we add to the log entry). So the log entry is built during the flow of the iRule and eventually shipped to the log server.
I ended up doing it with a foreach loop over ASM::violation details.
foreach {viol} [ASM::violation details] {
if {[lindex $viol 0] eq "viol_name"} {
set name [lindex $viol 1]
append violations "$name "
}
...
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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