Forum Discussion
ant77
Cirrostratus
Mar 15, 2021Logging HTTP response header to /var/log/ltm and Splunk
Hello everyone - I tried to log an HTTP response to the local log and since the syslog and analytics are being sent to spunk from the BigIP, it does not seem to be working. Using this iRule and a...
Hi Raj,
When using cookie insert persistence with a 0 timeout, LTM will only set the cookie in responses when a new load balancing selection is being made. This is expected behavior as the client should continue sending the same persistence cookie on each request for the duration that the browser is kept open.
The most common issue with cookie persistence is not having a OneConnect profile. Do you have a OneConnect profile added to the virtual server? This is necessary whenever you're doing per HTTP request persistence. If you're using SNAT on the serverside connection, you should use a /0 source mask on the OneConnect profile. If you're not doing source address translation on the serverside connection, create a custom /32 source mask OneConnect profile and add that to the virtual server.
See this wiki page for details on why this is necessary:
http://devcentral.f5.com/wiki/default.aspx/AdvDesignConfig/oneconnect
Aaron
- maher_69299Feb 02, 2010
Nimbostratus
I need a similar IRULE like the one posted by Aaron "for a different issue" but to redirect the IP address instead of the "www.app.mydomain.com" - Hi Maher,
when HTTP_REQUEST { Check if host header value is not www.example.com if {not ([string tolower [HTTP::host]] eq "www.example.com")}{ Send a 301 redirect HTTP::respond 301 Location "http://www.example.com/" } }
- maher_69299Feb 02, 2010
Nimbostratus
I think I got it .. I just changed the name after the " " to an IP address and it works - maher_69299Feb 02, 2010
Nimbostratus
Thanks Aaron. I guess I replied before seeing your post. I used your other Irule and it works. I will try the last Irule you posted since it seems more general than specifying an IP address. Thanks again
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