Forum Discussion
Stanley_87566
Nimbostratus
Apr 29, 2009Log millisecond by irule
I'm using irule to log down all load balance traffic via BIGIP. However I cannot record the millisecond for a very high traffic application. Is anybody know how record millisecond by irule on BIPIP?
Many thanks
- hoolio
Cirrostratus
You can use clock clicks -milleseconds (Click here) for deltas: - Stanley_87566
Nimbostratus
Here's the example, thanks! - Stanley_87566
Nimbostratus
Thx Aaron, I can log milisecond now. Here's for your reference!- Aurel
Cirrus
Hi, this trick did offers milliseconds accuracy, but in my case also brings some issues. Sometimes the value is not 3 digits long but can be 2 or only 1. Maybe someone noticed the behaviour as well ? I understand that this may not be a problem for some cases, but it is for me of course. - Moshe_Hyzon_609
Nimbostratus
TO format milliseconds correctly, you can do something like: set fract [format "%03d" $fract] log local0. "$info - - \[[clock format $secs -format "%d/%m/%Y:%H:%M:%S.$fract %z"]\]" after all the math
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