Forum Discussion
Andrew-F5
Jul 12, 2019Employee
Guy-M,
Unfortunately there isn't a specific log for priority group activation. I've created an iRule below that you can work with to create a log entry in /var/log/ltm, assuming you have remote syslog configured it will ship out to your remote location. You can update it to include more members if need be.
when LB_SELECTED {
log local0. "staus [LB::status pool /dev-test/https_pool member 10.2.0.33 80] "
if { [LB::status pool /<partition>/<pool> member <pool_member_IP> <pool_member_port>] eq "down" and [LB::status pool /<partition>/<pool> member <pool_member_IP> <pool_member_port>] eq "down" } {
log local0. " Priority group 2 down for <pool> with partitions!"
}
}
• Please replace <partition>,<pool_member_IP>, <pool> and <pool_member_port>, remove the angle brackets. Example: Common, 10.10.10.1, 80.
• iRules 101 - #05 - Selecting Pools, Pool Members, and Nodes https://devcentral.f5.com/s/articles/irules-101-05-selecting-pools-pool-members-and-nodes