Forum Discussion
Log statement in iRule.
This iRule worked fine before but when i add this log command inside this iRule client does not recieve response and log shows invalid command executed log.
Please Help.
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/300MEFPOSTPAIDLive*" {
pool Tibco-LB-Group3
HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end]
log 10.50.242.239 local0.info “[IP::client_addr][TCP::client_port]"
}
}
}
8 Replies
- shaggy
Nimbostratus
if you remove the IP address from the log statement, it should successfully log locally. Look into https://devcentral.f5.com/articles/irules-high-speed-logging-spray-those-log-statements to log remotely from iRules
- But i want to log it to remote syslog server. The problem is that only log statement should have problem but its making the whole iRule mulfunction.
- The link you provided is not opening
- shaggy_121467
Cumulonimbus
if you remove the IP address from the log statement, it should successfully log locally. Look into https://devcentral.f5.com/articles/irules-high-speed-logging-spray-those-log-statements to log remotely from iRules
- But i want to log it to remote syslog server. The problem is that only log statement should have problem but its making the whole iRule mulfunction.
- The link you provided is not opening
- shaggy_121467
Cumulonimbus
https://devcentral.f5.com/s/articles/irules-high-speed-logging-spray-those-log-statements
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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