Forum Discussion

Rafael_255098's avatar
Rafael_255098
Icon for Nimbostratus rankNimbostratus
Mar 28, 2016

How 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...
  • Josiah_39459's avatar
    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]"
    }