Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Akihiro Suda
aports
Commits
bcbb6de6
Commit
bcbb6de6
authored
13 years ago
by
Ted Trask
Browse files
Options
Downloads
Patches
Plain Diff
Revert "main/acf-weblog: strip TCP_DENIED from logs"
This reverts commit
7c45bf94
.
parent
6046b8ab
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/acf-weblog/0001-Do-not-import-TCP_DENIED-lines.patch
+0
-33
0 additions, 33 deletions
main/acf-weblog/0001-Do-not-import-TCP_DENIED-lines.patch
main/acf-weblog/APKBUILD
+3
-15
3 additions, 15 deletions
main/acf-weblog/APKBUILD
with
3 additions
and
48 deletions
main/acf-weblog/0001-Do-not-import-TCP_DENIED-lines.patch
deleted
100644 → 0
+
0
−
33
View file @
6046b8ab
From 39417cdb0db6b80b6a8fd38e05b77e75d90717b8 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 20 Dec 2011 14:19:37 +0100
Subject: [PATCH] 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.
---
weblog-model.lua | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/weblog-model.lua b/weblog-model.lua
index 07222fd..fe6fc37 100644
--- a/weblog-model.lua
+++ b/weblog-model.lua
@@ -652,6 +652,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, "%..*")
--
1.7.8.3
This diff is collapsed.
Click to expand it.
main/acf-weblog/APKBUILD
+
3
−
15
View file @
bcbb6de6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# Maintainer: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
pkgname
=
acf-weblog
pkgname
=
acf-weblog
pkgver
=
0.6.1
pkgver
=
0.6.1
pkgrel
=
1
pkgrel
=
0
pkgdesc
=
"ACF for web proxy (squid and dansguardian) logfiles"
pkgdesc
=
"ACF for web proxy (squid and dansguardian) logfiles"
url
=
"http://git.alpinelinux.org/cgit/acf-weblog"
url
=
"http://git.alpinelinux.org/cgit/acf-weblog"
arch
=
"noarch"
arch
=
"noarch"
...
@@ -11,23 +11,11 @@ depends="acf-core lua lua-sql-postgres wget postgresql-client"
...
@@ -11,23 +11,11 @@ depends="acf-core lua lua-sql-postgres wget postgresql-client"
makedepends
=
""
makedepends
=
""
install
=
"
$pkgname
.post-upgrade"
install
=
"
$pkgname
.post-upgrade"
subpackages
=
""
subpackages
=
""
source
=
"http://git.alpinelinux.org/cgit/
$pkgname
/snapshot/
$pkgname
-
$pkgver
.tar.bz2
source
=
"http://git.alpinelinux.org/cgit/
$pkgname
/snapshot/
$pkgname
-
$pkgver
.tar.bz2"
0001-Do-not-import-TCP_DENIED-lines.patch
"
prepare
()
{
cd
"
$srcdir
"
/
$pkgname
-
$pkgver
for
i
in
$source
;
do
case
$i
in
*
.patch
)
msg
$i
;
patch
-p1
-i
"
$srcdir
"
/
$i
||
return
1
;;
esac
done
}
package
()
{
package
()
{
cd
"
$srcdir
"
/
$pkgname
-
$pkgver
cd
"
$srcdir
"
/
$pkgname
-
$pkgver
make
DESTDIR
=
"
$pkgdir
"
install
make
DESTDIR
=
"
$pkgdir
"
install
}
}
md5sums
=
"9690f8ebdb6e5cb4e67d72ed01f03730 acf-weblog-0.6.1.tar.bz2
md5sums
=
"9690f8ebdb6e5cb4e67d72ed01f03730 acf-weblog-0.6.1.tar.bz2"
1235af17a1dc3b787cd6401945aa12f6 0001-Do-not-import-TCP_DENIED-lines.patch"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment