Forum Discussion
Jon_Strabala_46
Dec 15, 2009Nimbostratus
That is the issue I have log statements in each iRULE
in the "when CLIENT_ACCEPTED" code blocks
log local0. "got a CLIENT_ACCEPTED production_rule"
and
log local0. "got a CLIENT_ACCEPTED test_irule_000"
I actually had something similar to what you asked for (but I removed a lot of stuff to simplify - since nothing but the IRULE_INIT logs to /var/log/ltm - so none of my "when CLIENT_ACCEPTED" code blocks are ever called.
[jstrabala@www:Active] log tail -10 /var/log/ltm
Dec 15 08:11:56 tmm1 tmm1[1865]: Rule : test_irule_000 initialized: 991
Dec 15 08:12:03 tmm tmm[1922]: Rule : production_rule initialized: 111
Dec 15 08:12:03 tmm1 tmm1[1865]: Rule : production_rule initialized: 111
Dec 15 08:21:35 tmm tmm[1922]: Rule : production_rule initialized: 111
Dec 15 08:21:35 tmm1 tmm1[1865]: Rule : production_rule initialized: 111
Dec 15 08:23:28 tmm tmm[1922]: Rule : test_irule_000 initialized: 991
Dec 15 08:23:28 tmm1 tmm1[1865]: Rule : test_irule_000 initialized: 991
Dec 15 08:23:51 tmm tmm[1922]: Rule : production_rule initialized: 111
Dec 15 08:23:51 tmm1 tmm1[1865]: Rule : production_rule initialized: 111
Dec 15 08:25:08 www bigpipe: Completed config sync all operation
[jstrabala@www:Active] log
As you can see even though I have the above iRULEs in each "when CLIENT_ACCEPTED" code block there are never any messages in /var/log/ltm - other than those I put in the "when IRULES_INIT" code block.