Forum Discussion
Can iRule mask the payload content on event logs of security
try REGSUB -all , something like this to mask you mobile umber or password shown in the HTTP responses
when HTTP_RESPONSE {
set clen [HTTP::header Content-Length]
HTTP::collect $clen
}
when HTTP_RESPONSE_DATA {
regsub -all {<PhoneNumber>(.*?)</PhoneNumber>} [HTTP::payload] {<PhoneNumber>********</PhoneNumber>} fixeddata
log "Replacing payload with new data."
HTTP::payload replace 0 $clen $fixeddata
HTTP::release
}
https://my.f5.com/manage/s/article/K16533717
https://wiki.tcl-lang.org/page/regsub
https://spy86.github.io/CheatSheetCollection/DevOpsServices/F5.html
Recent Discussions
Related Content
* 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