Forum Discussion
MR_RJ
Nov 21, 2011Cirrus
Logging when there are multiple threads from one host
Hi,
I got a question from the development team that I doubt I can solve with a LTM but why not ask here, maybe anyone got a idea if it's possible at all.
We have a application (web...
MR_RJ
Dec 01, 2011Cirrus
when RULE_INIT {
array set ::customer_sourceip { }
}
when HTTP_REQUEST {
if { [HTTP::request_num] > 1 } then {
if { ([info exists ::customer_sourceip([IP::client_addr])]) } {
incr ::customer_sourceip([IP::client_addr])
log local0. "SourceIP - [IP::remote_addr] - _Threads_high [HTTP::request_num]"
}
else { set ::customer_sourceip([IP::client_addr]) 1 }
log local0. "SourceIP - [IP::remote_addr] - _Threads_high [HTTP::request_num]"
}
if { [HTTP::uri] starts_with "/ROB" } {
HTTP::respond 200 content [array get ::customer_sourceip]
set td_html ""
foreach {SRC_IPS} [array get ::customer_sourceip] {
append td_html "$SRC_IPS$SRC_IPS"
}
append td_html ""
HTTP::respond 200 content $td_html
}
}
I have some issues with the html page...
Found this post that you are were active in:
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/1172718/showtab/groupforums/Default.aspx
Seems to be the same problem in 10.2.1 :(
//Robert
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