Forum Discussion
NetworkTeam_178
Nimbostratus
Nov 04, 2016Logging for iRule isn't working?
Hello,
I want to output rejections for this iRule to a syslog server. My syntax is
when HTTP_REQUEST {
if { !(([HTTP::host] starts_with "website.co.uk") or ([HTTP::host] starts_with ";) o...
VernonWells
Employee
Nov 04, 2016Do you really mean
starts_with in these cases? Since .uk is a top-level domain, I assume you are not expecting Host header entries for something like "website.co.uk.foo.bar.baz.com". I ask because dropping the glob matching (and the asterisks at the end of the hostnames) makes the rule a bit faster, and I presume, more correct.
Also,
log delivers to the local syslog facility on the BIG-IP, which (unless you changed the syslog.conf) means it is going to a local file on the BIG-IP. If you want remote syslog, the best avenue is to use High Speed Logging from within your iRule:
- cjuniorNov 04, 2016
Nacreous
For sure that for non-standard port, the "starts_with" is relevant to him.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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