-
Notifications
You must be signed in to change notification settings - Fork 20
/
squid.json
50 lines (50 loc) · 1.95 KB
/
squid.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"squid_access_log" : {
"title" : "Squid access log format",
"description" : "Log format used by the Squid HTTP cache",
"url" : "http://wiki.squid-cache.org/Features/LogFormat",
"regex" : {
"default" : {
"pattern" : "^(?<timestamp>\\d+(?:\\.\\d{3})?)\\s+(?<duration>\\d+)\\s+(?<client>(?:\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})) (?<req_type>\\w+)/(?<response_code>\\d+) (?<resp_size>\\d+) GET (?<body>https?://\\S+) (?<user>\\w+|-) (?<method>\\w+)(?:/(?<source>\\S+)) (?<mime_type>\\w+/[\\w-]+|-)$"
}
},
"timestamp-format" : [ "%s.%i" ],
"value" : {
"duration" : { "kind" : "integer" },
"client" : { "kind" : "string", "identifier" : true },
"req_type" : { "kind" : "string", "identifier" : true },
"response_code" : { "kind" : "integer", "identifier" : true },
"resp_size" : { "kind" : "integer" },
"body" : { "kind" : "string" },
"method" : { "kind" : "string", "identifier" : true },
"source" : { "kind" : "string", "identifier" : true },
"mime_type" : { "kind" : "string", "identifier" : true }
},
"sample" : [
{
"line" : "1436673100.317 488 127.0.0.1 TCP_REFRESH_MODIFIED/200 1783 GET http://example.org/example.xml - DIRECT/10.20.130.12 text/xml"
},
{
"line" : "1436691398.468 1616 127.0.0.1 TCP_SWAPFAIL_MISS/200 2512822 GET http://example.org/example.gz - DIRECT/10.20.130.12 application/x-gzip"
},
{
"line" : "1436799758.045 955 127.0.0.1 TCP_MISS/200 70113 GET http://example.org/example.bin - DIRECT/10.20.130.12 application/octet-stream"
}
]
},
"squid_daemon_log" : {
"title" : "Squid daemon log format",
"description" : "Log format used by the Squid HTTP cache",
"url" : "http://wiki.squid-cache.org/Features/LogFormat",
"regex" : {
"default" : {
"pattern" : "^(?<timestamp>\\d{4}/\\d{2}/\\d{2} (?:\\d |\\d\\d):\\d{2}:\\d{2})\\|\\s+(?<body>.*)$"
}
},
"sample" : [
{
"line" : "2015/06/19 16:44:04| Creating Swap Directories"
}
]
}
}