Forum Discussion
Pradeep_Kandala
Nimbostratus
Sep 18, 2012reg: Log statements printing twice
Hi Guys,
while I give only 1 log statement. Why the f5 logs gets printed twice ??
Thanks in advance
Pradeep
10 Replies
- Kevin_Stewart
Employee
Pradeep,
Can you be more explicit? What event is the log statement under and how are you testing? Can you send the iRule? - Pradeep_Kandala
Nimbostratus
Yeah,
in when HTTP_REQUEST
if {$::posDebug >= 3} {
log local0.info "10.0000 - Entering HTTP_REQUEST, IP: [IP::client_addr], SSL sid: [SSL::sessionid], URI: [HTTP::uri], requestPath: $requestPath"
log local0.info "10.0020 - POSSPC cookie: [HTTP::cookie POSSPC] IP: [IP::client_addr]"
log local0.info "10.0021 - User-Agent:[HTTP::header User-Agent] IP: [IP::client_addr]"
}
when CLIENT_CLOSED {
if {$::posDebug >= 3} {
log local0.info "50.00 - Entering CLIENT_CLOSED IP: [IP::client_addr]"
}
}
All the log statements are having printing twice.the above two are just examples.
these - Kevin_Stewart
Employee
Second question:
Does the [HTTP::uri] log return the same value? Your browser may be making multiple requests (pipelining) or you're requesting the favicon. - Pradeep_Kandala
Nimbostratus
Is it what you are pointing on ??
if {$::posDebug >= 2} {
if {[string match "*favicon*" $http_uri]} {
log local0.info "10.0200 - See request for favicon.icn: $http_uri IP: [IP::client_addr]"
} - Kevin_Stewart
Employee
I'm just asking if, in your first log line:
log local0.info "10.0000 - Entering HTTP_REQUEST, IP: [IP::client_addr], SSL sid: [SSL::sessionid], URI: [HTTP::uri], requestPath: $requestPath"
the HTTP::uri statement is returning the same value every time. Or more specifically, is the entire log message the same (IP, SSL ID, URI, and requestPath)? - Pradeep_Kandala
Nimbostratus
No, It differs most of the times, as there is SSL renegotiation and URL redirection like cases. - Kevin_Stewart
Employee
Let me rephrase the question. You said that all of the log statements are firing twice. My question is, when they fire twice, do they contain the SAME log information? When does it fire twice? In the beginning or on every request? - Pradeep_Kandala
Nimbostratus
Yes, they contain the same log information. everything same, with time stamp also. - Mohamed_Lrhazi
Altocumulus
syslog config issue maybe? - Kevin_Stewart
Employee
That's my guess too Mohamed. Also try the following:
1. Run a wireshark capture to see if it's actually sending syslog data twice.
2. Test with the local syslog facility: local0.
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
