Forum Discussion
muzammil_88686
Nimbostratus
Dec 24, 2012URL Logging, Hitcount, IP addresses
Dear Dev Team,
We are getting complains from Server guys about some specific URLs are getting hit by lot of IP addresses and they are seeing lot of hits to those URLs.
The URLs are as below...
What_Lies_Bene1
Cirrostratus
Dec 24, 2012I'd suggest you are very careful using this to log the IP addresses as you may find your log files grows very quickly and the HSM may run out of disk space - use with care. This rule requires a Statistics Profile call busyurls and counters called 123, xyz and abc.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/test?123*" {
log local0. "[IP::client_addr] connected to [HTTP::host][HTTP::uri]"
STATS::incr busyurls 123
}
"/test?xyz*" {
log local0. "[IP::client_addr] connected to [HTTP::host][HTTP::uri]"
STATS::incr busyurls xyz
}
"/test?abc*" {
log local0. "[IP::client_addr] connected to [HTTP::host][HTTP::uri]"
STATS::incr busyurls abc
}
}
}
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