Forum Discussion
Nandhi
Cirrus
Oct 19, 2022HSL iRule to log http status error output to syslog server
All, I am new to irule. Looking for experts suggestion one of the iRule while will log an output to a syslog server directly. The iRule should check the http status code of the connection and send t...
Chris_Phillips
Nimbostratus
Mar 10, 2006I think i'm missing something here...
firstly that code doesn't seem to be intended to fix what i was after. It certainly looks interesting but am not sure that it relates to what i need. I've added to the tmm_base (although the tmm_init.tcl customizatin file seems liek a much nicer place to make additions. and then I commented those three lines in named.conf (it was just those 3 right?) and restarted both tmm and named via bigstart... nothing. same blank response.
From my issues, i do appear to be using the (undocumented) NAME::response command wrong, as the example uses [NAME::response address 0] to obtain the actual IP address. but still... no change.
Thanks
Chris
- NandhiOct 28, 2022
Cirrus
Thanks Kevin for the response.
Can you please help to brief what will fetch or not captured if remove the statement "when HTTP_RESPONSE {if {HTTP::has_responded]} {return}" in the rule.
Thanks.
- Kevin_StewartOct 28, 2022
Employee
I'm not entirely sure that removing HTTP::has_responded would work here. But that statement is basically triggering on the presence of preceding iRule logic. You mentioned in the initial post that the 500 response was being logged by another 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