-
Notifications
You must be signed in to change notification settings - Fork 6
/
agent.conf.j2
39 lines (37 loc) · 1.03 KB
/
agent.conf.j2
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
input {
{%- for input_value in input %}
file {
add_field => {{ input_value.dimensions }}
tags => {{ input_value.tags }}
path => {{ input_value.path }}
codec => multiline {
negate => {{input_value.negate}}
pattern => {{input_value.pattern}}
what => {{input_value.what}}
}
}
{%- endfor %}
}
filter {
{%- for filter_value in filter %}
if {{ filter_value.type }} in [tags] {
{{ filter_value.name }} {
negate => {{ filter_value.negate }}
pattern => {{ filter_value.pattern }}
what => {{ filter_value.what }}
}
}
{%- endfor %}
}
output {
monasca_log_api {
monasca_log_api_url => "{{ output.monasca_log_api_url }}"
keystone_api_url => "{{ output.keystone_api_url }}"
project_name => "{{ output.project_name }}"
username => "{{ output.username }}"
password => "{{ output.password }}"
user_domain_name => "{{ output.user_domain_name }}"
project_domain_name => "{{ output.project_domain_name }}"
dimensions => ["hostname:{{ output.dimensions }}"]
}
}