countHttpLogs handling logrotation.
Handle logrotation refac.