Forum Discussion

Corinna_Lo_1746's avatar
Corinna_Lo_1746
Icon for Nimbostratus rankNimbostratus
Jul 15, 2005

ways to debug irules

hi,

 

 

What are the ways to debug irules? say, if something is not triggered, i would like to see what the values are. are there ways to "print" out a value? say maybe log the value onto a file on bigip box or something?

 

 

any suggestion is appreciated.

 

 

thanks!

 

 

- corinna

 

  • Sure is. Use the log command

    log [.]

    This will output the message through the normal syslog configuration. An example of using the log command to output the HTTP uri would be as follows:

    when HTTP_REQUEST {
      log local0. "Found uri: [HTTP::uri]"
    }

    The output will be in the /var/log/ltm file on the BIG-IP. This is also viewable from the GUI under the "System"."Logs"."Local Traffic" menu item.

    Good luck!

    -Joe