Forum Discussion
mart_58302
Nimbostratus
Jun 15, 2009iRule debug is set to 0 but still logs are running
Hello.
BIG-IP 9.4.7 Build 320.1 Final, I'm using Aaron -s super Http Https Single Virtual Server iRule - http://devcentral.f5.com/Wiki/default.aspx/iRules/HttpHttpsSingleVirtualServer.html
And debug is disabled:
Set this option to 1 to log debug messages (to /var/log/ltm by default)
set ::debug 0
Still logs are active:
Jun 15 16:11:51 tmm tmm[1852]: Rule http_to_https : ---------------------------- Start ----------------------------
Jun 15 16:11:51 tmm tmm[1852]: Rule http_to_https : HTTPS request from 172.172.31.210 to 192.168.121.138:443
Jun 15 16:11:51 tmm tmm[1852]: Rule http_to_https : ---------------------------- Start ----------------------------
Why?
- The_Bhattman
Nimbostratus
I have no answer, but I would comment out the debug statements and see if that makes a difference. The idea is that whatever is loaded in memory should not have it active it if remove it. - hoolio
Cirrostratus
I'd guess it's because there is another iRule which sets a global variable named debug to 1. If you change this iRule from ::debug to ::single_vs_debug, you should be able to avoid the problem. - mart_58302
Nimbostratus
Strange, I didn't find such another rule, but thanks for the suggestion, I'll try it at tomorrow. - hoolio
Cirrostratus
If you want to use the exact same iRule for multiple virtual servers you should reference the same iRule. If you need to make changes to the iRule and have different versions of the same iRule saved on the same LTM unit, you should rename all of the variables to be unique to that iRule. It's something of a nuisance, but necessary to avoid trampling of variables between iRules. - mart_58302
Nimbostratus
Well, after downgrading to 9.4.6 no such running debug logs as in 9.4.7 using same rules.
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