Forum Discussion
log persistence mode in iRule
Is there an iRule way to query the current persistence mode? I'm looking to add this to our logging rule.
- Andrew-F5
Employee
There doesn't appear to be a way to directly query a persistence type via iRule commands.
You might be able to leverage 'persist lookup' using if..else logic to check each persistence type returning true for a match.
#pseudo code when HTTP_REQUEST { if { persist lookup cookie == $cookievalue }{ log local0. "Persistence type Cookie" } else { persist lookup simple == $simplevalue }{ log local0. "Persistence type Simple" } }
- TimRiker
Cirrocumulus
"persist lookup cookie" is not yet implemented according to the article. It would be nice to have a "persist lookup" that returns the current persistence mode.
- Andrew-F5
Employee
TimRiker,
You can open a support case with F5 and ask for a feature request to include that functionality.
Best,
Andrew
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