Forum Discussion
nitass
Feb 05, 2012Employee
My assumption is that table -count considers all entries irrespective of timeout/lifetime i do not think so.
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
table set -subtable test "1.1.1.1" "11111" 1 indef
table set -subtable test "2.2.2.2" "22222" indef indef
table set -subtable test "3.3.3.3" "33333" indef indef
log local0. "\[table key -subtable test\]: [table key -subtable test]"
log local0. "\[table key -subtable test -count\]: [table key -subtable test -count]"
after 2000
log local0. "after 2000 ms"
log local0. "\[table key -subtable test\]: [table key -subtable test]"
log local0. "\[table key -subtable test -count\]: [table key -subtable test -count]"
}
}
[root@ve1023:Active] config cat /var/log/ltm
Feb 5 06:31:23 local/tmm info tmm[4369]: Rule myrule HTTP_REQUEST: [table key -subtable test]: 2.2.2.2 3.3.3.3 1.1.1.1
Feb 5 06:31:23 local/tmm info tmm[4369]: Rule myrule HTTP_REQUEST: [table key -subtable test -count]: 3
Feb 5 06:31:25 local/tmm info tmm[4369]: Rule myrule HTTP_REQUEST: after 2000 ms
Feb 5 06:31:25 local/tmm info tmm[4369]: Rule myrule HTTP_REQUEST: [table key -subtable test]: 2.2.2.2 3.3.3.3
Feb 5 06:31:25 local/tmm info tmm[4369]: Rule myrule HTTP_REQUEST: [table key -subtable test -count]: 2