-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.config.toml
88 lines (81 loc) · 2.76 KB
/
example.config.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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# local logging configuration
[Logger]
Level = "DEBUG"
# log file
File = ""
# configurable set of fields which will appear in each log entry
Fields = [
"prefix"
]
# ingest points config. each point must have unique name.
[IngestPoints]
# example config section for consuming messages from redis PUBSUB
[IngestPoints.redis-in]
# (required) ingest point type
Type = "redis"
# (optional) redis host. defaults to localhost
Host = "example.com"
# (optional) redis port. defaults to 6379
Port = 6379
# (required) Redis PSUBSCRIBE pattern
Pattern = "logbay:example:pattern:*"
# (optional) default to false
Disabled = false
# example config section for TLS ingest.
[IngestPoints.tls-in]
# (required) ingest point type
Type = "tls"
# (required) server port
Port = 30443
# (required) path to TLS certificate
Certificate = "/path/to/certificate"
# (required) path to TLS certificate key
Key = "/path/to/certificate/key"
# (optional) path to CA
CA = "/path/to/ca"
# (optional) message delimiter. defaults to '\n'
Delimiter = '\n'
# (optional) default to false
Disabled = true
[DigestPoints]
[DigestPoints.redis-out]
# (required) digest point type
Type = "redis"
# (optional) destination redis host. defaults to localhost
Host = "example.com"
# (optional) redis port. defaults to 6379
Port = 6379
# (required) list of ingests to get messages from
Ingests = ["redis-in"]
# (optional) redis PSUBSCRIBE pattern. Template variables {{var}} will be substituted with values from incoming message.
# useful for routing.
# Example: Message {"process": "myprocess", "message": "any message", "id": "12345"} will be published to logbay:myprocess:12345 channel
Pattern = "logbay:{{process}}:{{id}}"
# (optional) defaults to false
Disabled = false
[DigestPoints.ws-out]
# (required) digest point type
Type = "ws"
# (optional) uri for WS server. default to 'logbay'
URL = "logbay"
# (optional) port for WS server
Port = 9999
# (required) list of ingests to get messages from
Ingests = ["redis-in"]
# (optional) defaults to false
Disabled = false
[DigestPoints.elastic-out]
# (required) digest point type
Type = "elastic"
# (optional) elastic server host. defaults to http://localhost:9200
Host = "http://localhost:9200"
# (required) elastic index name
ESIndex = "logbay"
# (required) elastic mapping name
ESDocument = "log_entry"
# (optional) how many messages to buffer before executing _bulk index request. Defaults to 100
ESBatchSize = 100
# (required) list of ingests to get messages from
Ingests = ["redis-in"]
# (optional) defaults to false
Disabled = false