-
Notifications
You must be signed in to change notification settings - Fork 0
/
logdog_test.toml
41 lines (38 loc) · 1.21 KB
/
logdog_test.toml
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
[input]
[input.accesslog]
type = "file"
cname = "s*" # 容器名称,支持列表,支持通配符*
path = "/Users/gao/test111" # 文件路径,支持列表,支持通配符*
format = "text"
regex = "(?P<level>\\w+) (?P<time>\\S+) \\w+ (?P<name>\\w+)"
# [input.docker]
# type = "docker"
# cname = ["s*"]
# format = "text"
# docker_log_path = "/var/lib/docker/containers/{ID}/{ID}-json.log"
[handler]
[handler.accesslog]
script_path = "/Users/gao/code/gowork/src/logDog/myHandler.lua" # lua 脚本路径
[handler.accesslog.add_data]
school_id = "123"
class_id = "123"
[output]
[output.other]
type = "stdout"
[output.accesslog2]
type = "http"
http_url = "http://localhost:9000"
[output.accesslog2.headers]
Auth = "123456"
[output.accesslog3]
type = "redis"
redis_addr = "localhost:6379"
redis_db = 0
redis_key = "logdog"
[output.accesslog]
type = "mysql"
mysql_host = "localhost"
mysql_port = 3306
mysql_db = "ischool"
mysql_user = "root"
mysql_password = "gaojian"