Commit 7ff4d070 authored by Natanael Copa's avatar Natanael Copa Committed by Ted Trask
Browse files

Do not import TCP_DENIED lines

Those pages were never showed to the client so there is no point in store
those for analyzing. Some applications (like Nokia connection suite) will
ignore an auth reject and will retry several times per second which will
flood the logs.
parent ed757db9
......@@ -566,6 +566,12 @@ local function parsesquidlog(line)
-- Don't care about TCP_DENIED so apps like dropbox, nokia connection
-- suite does not flood our logs.
if logentry.code == nil or logentry.code == "TCP_DENIED" then
return nil
-- Don't care about local requests (from DG) (this check also removes blank lines)
if logentry.clientip and logentry.clientip ~= "" then
logentry.logdatetime ="%Y-%m-%d %H:%M:%S", logentry.logdatetime)..string.match(logentry.logdatetime, "%..*")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment