Forum Discussion

pcourtois's avatar
pcourtois
Icon for Altocumulus rankAltocumulus
Sep 19, 2024

Cookie Persistence configured on VS but no logs

Good day all,

I have default cookie persistence profile configured on my VS (Virtual Server > Load Balancing > Default Persistence Profile: cookie) and I've enabled the system to be able to view in the GUI (#tmsh modify sys db ui.statistics.modulestatistics.localtraffic.persistencerecords value true).  The issue is that I see no logs in tmsh (#tmsh show /ltm persistence persist-records) or in the GUI (Module Statistics > Local Traffic > Persistence Records) and I have active sessions to the VS.  I feel I should see something.  Thoughts?  

As always, I look forward to your input and it is greatly appreciated.  Thank you.  

Sincerely,

Paul C. 

  • Hi All,

    My apologies for being away for so long.  And thank you for the suggestions and input.  I greatly appreciate them.  I will respond accordingly.  

  • Hi pcourtois

    You will not be able to see a persistence record table for Cookie Persistence type "insert cookie", because Cookie Persistence is a piece of info stored in the client browser not BIGIP but BIGIP decodes it actively to detect which pool member should direct the traffic to. 

    definitely you can see the persistence records table for Source address affinity but Cookies is differ.

    You can only view the persistence records for hash cookies type: https://my.f5.com/manage/s/article/K6586 
    this type is set by servers and bigip performs an offset calculations to get a value for this hash cookie and store it in persistence table.

  • are the clients web browsers?
    cookie persistence usually doesnt work for non browser clients

  • I hope you have added the http or http fast profile before adding the persistence. If you add the we should able to see the persistence entries. Command details adding FYI

    https://clouddocs.f5.com/cli/tmsh-reference/v15/modules/ltm/ltm_persistence_persist-records.html

    • pcourtois's avatar
      pcourtois
      Icon for Altocumulus rankAltocumulus

      Hi Aswin_mk , yes, I have an http profile set on the Virtual Server.  I will take a look at the URL you provided.  Thank you.