Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acf-weblog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ACF
acf-weblog
Commits
07032636
Commit
07032636
authored
Nov 20, 2012
by
Ted Trask
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put squark category into block reason
parent
b6585d74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
weblog-model.lua
weblog-model.lua
+7
-1
No files found.
weblog-model.lua
View file @
07032636
...
...
@@ -514,6 +514,12 @@ local function checkwords(logentry)
end
end
--check for Squark category
if
(
logentry
.
squarkcategory
and
logentry
.
squarkcategory
~=
""
)
then
logentry
.
reason
=
logentry
.
squarkcategory
logentry
.
shortreason
=
logentry
.
squarkcategory
end
for
i
,
goodline
in
ipairs
(
goodwords
)
do
if
not
goodline
then
break
...
...
@@ -543,7 +549,7 @@ end
local
function
parsesquidlog
(
line
)
-- Format of squid log (space separated):
-- time elapsed remotehost code/status bytes method URL rfc931 peerstatus/peerhost
-- time elapsed remotehost code/status bytes method URL rfc931 peerstatus/peerhost
? squarkcategory/squarkaction
local
words
=
{}
for
word
in
string.gmatch
(
line
,
"%S+"
)
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment