Forum Discussion
Scott_82463
May 24, 2011Nimbostratus
Simple "Hello World" iRule
I'm really new to F5 and iRules and I'm having trouble setting up a simple "Hello World" iRule. Here's the iRule I tried: when HTTP_REQUEST { if { [HTTP::uri] eq ...
Michael_Yates
May 24, 2011Nimbostratus
Worked fine for me:
Invalid at the top level of the document. Error processing resource 'http://test.domain.com/mytest'. Line 1, Position 1
Hello World
^
With your "eq" if you have anything else (including a trailing slash, the it will not qualify). You could use starts_with instead and see if you get it to work for you.
The "log local0." will log to the /var/log/ltm. You are calling it correctly in your iRule.
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