Forum Discussion
Jean_Mamène
Cirrus
Jun 13, 2019Irule header APM
Hello, The fact that the EXAMPLE * header are eliminated by the F5 blocks any possibility of traceability of our messages within our information system for some VHOST. I already set up irule...
Nicolas_Destor
Cirrostratus
Jun 19, 2019Hi Jean,
My apologize for this late answer. Do you have an ASM profile attached to your vHost/VS? Because the default behavior of HTTP profile in LTM is to preserve client headers normally, your issue should not happen.
You can try this iRule otherwise (not tested):
when HTTP_REQUEST {
set HEADER1 [HTTP::header "EXAMPLE_TX_ID"]
set HEADER2 [HTTP::header "EXAMPLE_SPAN_ID"]
}
when HTTP_REQUEST_SEND {
if [string length $HEADER1] {
HTTP::header replace "EXAMPLE_TX_ID" $HEADER1
}
if [string length $HEADER2] {
HTTP::header replace "EXAMPLE_SPAN_ID" $HEADER2
}
}
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