Forum Discussion
Deb_Allen_18
May 05, 2006Historic F5 Account
Missing log entries
I'm testing whether redirect with Keepalive header is really kept alive, so I wrote this little rule to try to keep the connection alive long enough for me to see it in netstat and then see when it goes away:
when HTTP_REQUEST {
HTTP::header remove Connection
for {set x 0}{$x<10000}{incr x}{
log local0. $x
}
HTTP::redirect http://www.google.com/
}
What I'm seeing is a bit odd: It logs up to x=220, then /sometimes/ resumes logging again somewhere in the 900's, but never logs between 221 and 900, and only once did I see it log up to 999 as expected (still with the gap after 220).
I'm not seeing any errors or syslog message compression (no "last message repeated..." in logs)
Of course, this isn't a real world scenario, but it concerns me that the logging is just stopping. Lots of my customers are using logging to alert them to rule exceptions, and it would be good to know whether this is a reliable facility, or if the execution speed of the loop is just overwhelming the log facility. (seems odd that it so consistently bites it after iteration 221...)
thanks!
/deb
- JRahm
Admin
I tested your rule on my 9.1.1 6400, I got: - Deb_Allen_18Historic F5 Accounthmmm...
- JRahm
Admin
Your assumption is correct, I was logging to the default facility. When I changed it to local0, I got similar but not identical behavior. I tried several different facilities and levels, and the results are the same. If I put a timing loop in front of the log statement, I get all my log statements. I found that variable Y must increase as the limit for variable X is increased. For example, I consistently get all 300 lines if I have a 12 count loop in between each log statementfor {set x 0}{$x<300}{incr x}{ for {set y 0}{$y<12}{incr y} { } log local0 "Number $x" }
for {set x 0}{$x<1000}{incr x}{ for {set y 0}{$y<100}{incr y} { } log local0. "Number $x" }
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