Forum Discussion
benniehanas_239
Mar 14, 2018Nimbostratus
Help with iRule logging to local0.
I am trying to log an iRule, but it keeps erroring out. Can you help with what I'm missing?
when HTTP_REQUEST {
if { [HTTP::path] starts_with "/media" } {
pool
persist cookie ...
Lee_Sutcliffe
Mar 14, 2018Nacreous
Try this to start with. I've removed your cookie persist section as this didn't match the required syntax. See https://devcentral.f5.com/wiki/iRules.persist.ashx for details. You don't need to configure persistence with an iRule, add a cookie persistence profile to the virtual server
when HTTP_REQUEST {
if { [HTTP::path] starts_with "/media" } {
pool
log local0. "media.com_28080 TCP_logging fired, from [IP::client_addr]"
}
}
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