summaryrefslogtreecommitdiffstats
path: root/doc/schemas/logstash/log-courier.conf
blob: 20d106fecbf09889e30e1e12519d3cb4198ac2a9 (plain)
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
# Example log-courier configuration file for RADIUS detail files.
#
# This has been tested with log-courier version 2.0.4
#
{
	"general": {
		"persist directory": "/var/lib/log-courier",
		"log syslog": true,
		"log stdout": false
	},

	"network": {
		"transport": "tcp",

		# Servers to connect to.
		#
		"servers": [
			"logstash1.example:5140",
			"logstash2.example:5140"
		]
	},

	"files": [
		{
			# Match RADIUS detail files, but not anything that has
			# been gzipped.
			#
			"paths": [ "/var/log/radius/radacct/*/detail-????????" ],

			# Add a type:"radiusdetail" field to the data so that
			# logstash can tell what type of data this is (in case
			# log-courier is being used for other data as well).
			#
			"fields": {
				"type": "radiusdetail"
			},

			# Stop watching a file if nothing has been written in 12h.
			#
			"dead time": "12h",

			# Process multilines. If this is being used then the
			# "multiline" section should be commented out from the
			# logstash configuration. Logstash can then also be run
			# with multiple workers (using -w).
			#
			"codecs": [
				{
					"name": "multiline",
					"patterns": [ "^[A-Z\t]" ],
					"what": "next"
				}
			]
		}
	]
}