Debian Codegraph @

doc/schemas/logstash/log-courier.conf

raw
1 # Example log-courier configuration file for RADIUS detail files.
2 #
3 # This has been tested with log-courier version 2.0.4
4 #
5 {
6 "general": {
7 "persist directory": "/var/lib/log-courier",
8 "log syslog": true,
9 "log stdout": false
10 },
11
12 "network": {
13 "transport": "tcp",
14
15 # Servers to connect to.
16 #
17 "servers": [
18 "logstash1.example:5140",
19 "logstash2.example:5140"
20 ]
21 },
22
23 "files": [
24 {
25 # Match RADIUS detail files, but not anything that has
26 # been gzipped.
27 #
28 "paths": [ "/var/log/radius/radacct/*/detail-????????" ],
29
30 # Add a type:"radiusdetail" field to the data so that
31 # logstash can tell what type of data this is (in case
32 # log-courier is being used for other data as well).
33 #
34 "fields": {
35 "type": "radiusdetail"
36 },
37
38 # Stop watching a file if nothing has been written in 12h.
39 #
40 "dead time": "12h",
41
42 # Process multilines. If this is being used then the
43 # "multiline" section should be commented out from the
44 # logstash configuration. Logstash can then also be run
45 # with multiple workers (using -w).
46 #
47 "codecs": [
48 {
49 "name": "multiline",
50 "patterns": [ "^[A-Z\t]" ],
51 "what": "next"
52 }
53 ]
54 }
55 ]
56 }