Forum Discussion

steve_88008's avatar
steve_88008
Icon for Nimbostratus rankNimbostratus
Jul 22, 2010

debug an irule

 

i was wondering how to debug an irule? I know there is a location for this in the WUI, however i'd like to see when a condition of the irule is matched.

1 Reply

  • Hi Steve,

     

     

    You can use log statements to debug iRules. The output for a log statement to local0.* is written to /var/log/ltm by default. You can check the log wiki page for details or many of the Codeshare examples:

     

     

    http://devcentral.f5.com/Wiki/default.aspx/iRules/log

     

    http://devcentral.f5.com/Wiki/default.aspx/iRules/CodeShare

     

     

    Aaron