~bigdata-dev/charms/trusty/apache-flume-syslog/trunk

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
# list sources, sinks, and channels in the agent
a1.sources = r1
a1.sinks = k1
a1.channels = c1

# source properties
a1.sources.r1.type = {{ config['source_type'] }}
a1.sources.r1.channels = c1
a1.sources.r1.host = 0.0.0.0
a1.sources.r1.keepFields = true
a1.sources.r1.port = {{ config['source_port'] }}

# inject our configured subdir
a1.sources.r1.interceptors = i1
a1.sources.r1.interceptors.i1.type = static
a1.sources.r1.interceptors.i1.key = event_dir
a1.sources.r1.interceptors.i1.value = {{ config['event_dir'] }}

# channel properties
a1.channels.c1.type = memory
a1.channels.c1.capacity = {{ config['channel_capacity'] }}
a1.channels.c1.transactionCapacity = {{ config['channel_transaction_capacity'] }}

# sink properties
a1.sinks.k1.type = {{ any_ready_unit('flume-agent')[1]['protocol'] }}
a1.sinks.k1.channel = c1
a1.sinks.k1.hostname = {{ any_ready_unit('flume-agent')[1]['private-address'] }}
a1.sinks.k1.port = {{ any_ready_unit('flume-agent')[1]['port'] }}