Forum Discussion
Rafael_255098
Nimbostratus
Mar 28, 2016How to save only some fields from payload?
Hello,
I need log, in a single line, some informations from Header and some from payload. For this I wrote the iRule below that already saves the header fields correctly, now I need to save only th...
- Mar 28, 2016
Yes, easily. Just add a conditional around this part:
log local0. $LogString log local0. "[lindex $params 0] : [lindex $params 1]"Like
if { [lindex $params 0] eq 'txtLogin' or [lindex $params 0] eq 'gpnEnviarPor' } { log local0. $LogString log local0. "[lindex $params 0] : [lindex $params 1]" }
Josiah_39459
Mar 28, 2016Historic F5 Account
Yes, easily. Just add a conditional around this part:
log local0. $LogString
log local0. "[lindex $params 0] : [lindex $params 1]"
Like
if { [lindex $params 0] eq 'txtLogin' or [lindex $params 0] eq 'gpnEnviarPor' } {
log local0. $LogString
log local0. "[lindex $params 0] : [lindex $params 1]"
}
Rafael_255098
Nimbostratus
Mar 29, 2016Thanks again Josiah, now it works!!!
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
