summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--weblog-model.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/weblog-model.lua b/weblog-model.lua
index 9aa31f8..7f09c7d 100644
--- a/weblog-model.lua
+++ b/weblog-model.lua
@@ -566,6 +566,12 @@ local function parsesquidlog(line)
checkwords(logentry)
+ -- 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
+ end
+
-- Don't care about local requests (from DG) (this check also removes blank lines)
if logentry.clientip and logentry.clientip ~= "127.0.0.1" then
logentry.logdatetime = os.date("%Y-%m-%d %H:%M:%S", logentry.logdatetime)..string.match(logentry.logdatetime, "%..*")