Forum Discussion
Maria123
Altostratus
Dec 13, 2019Is HTTP::header available for LB_SELECTED, LB_FAILED & PERSIST_DOWN
Can you please let me know if HTTP::header commands are available for the following events. Want to use [HTTP::header exists <header_name>] for these events. LB_SELECTED LB_FAILED PERSIST_DOWN
Dec 13, 2019
Hi Maria,
I tested events... working.
when LB_SELECTED {
if { [HTTP::header exists "Host"] } {
log local0. "LB_SELECTED Host: [HTTP::header host]"
}
}
when LB_FAILED {
if { [HTTP::header exists "Host"] } {
log local0. "LB_FAILED Host: [HTTP::header host]"
}
}
when PERSIST_DOWN {
if { [HTTP::header exists "Host"] } {
log local0. "PERSIST_DOWN Host: [HTTP::header host]"
}
}Logs:
Dec 13 14:41:10 v15 info tmm[17585]: Rule /Common/__event_header_test <LB_SELECTED>: LB_SELECTED Host: 172.16.11.21
Dec 13 14:42:06 v15 info tmm[17585]: Rule /Common/__event_header_test <LB_FAILED>: LB_FAILED Host: 172.16.11.21
Dec 13 14:42:07 v15 info tmm1[17585]: Rule /Common/__event_header_test <LB_FAILED>: LB_FAILED Host: 172.16.11.21
Dec 13 14:42:07 v15 info tmm[17585]: Rule /Common/__event_header_test <LB_FAILED>: LB_FAILED Host: 172.16.11.21
Dec 13 14:44:38 v15 info tmm2[17585]: Rule /Common/__event_header_test <PERSIST_DOWN>: PERSIST_DOWN Host: 172.16.11.21Maria123
Altostratus
Dec 13, 2019Thanks for answering.
Just wondering why these events are not documented for HTTP::header
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