-
Notifications
You must be signed in to change notification settings - Fork 0
/
logc.yml
70 lines (69 loc) · 1.58 KB
/
logc.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
logc:
bind: "0.0.0.0"
port: 914
# const VERBOSITY_NONE = 0;
# const VERBOSITY_DEBUG = 1;
verbosity: 0
buffer:
# items
max_flush_size: 10000
# seconds
max_flush_period: 10
outputs:
application:
parser: Logc\LogParser\ApplicationLogParser
timeout:
connection: 2
#single operation
write: 1
port: 8123
host: "clickhouse"
username: "default"
password: ~
database: "default"
table: "application"
engine: "MergeTree(date, (channel, time, message, customType), 8192)"
schema:
time: DateTime
date: Date default toDate(time)
channel: String
message: String
level: UInt16
customType: Int16
p1: Nullable(String)
p2: Nullable(String)
p3: Nullable(String)
p4: Nullable(String)
p5: Nullable(String)
p6: Nullable(String)
i1: Nullable(Float64)
i2: Nullable(Float64)
i3: Nullable(Float64)
i4: Nullable(Float64)
i5: Nullable(Float64)
i6: Nullable(Float64)
other: Array(String)
nginx:
parser: Logc\LogParser\Cm2NginxLogParser
timeout:
connection: 2
#single operation
write: 1
port: 8123
host: "clickhouse"
username: "default"
password: ~
database: "default"
table: "nginx"
engine: "MergeTree(date, (status, time, uri, method), 8192)"
schema:
time: DateTime
date: Date default toDate(time)
uri: String
status: UInt16
referer: String
bytes: UInt16
cache: String
method: String
body: String
requestTime: Float32