-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmain.yml
104 lines (91 loc) · 3.24 KB
/
main.yml
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
# defaults file for ansible-es-filebeat
# Defines whether or not filebeat is configured
es_filebeat_config: false
# Define filebeat config per
# https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-configuration-details.html
# The config here will be automatically converted to proper YAML for Filebeat
# /etc/filebeat/filebeat.yml using the Jinja2 template.
es_filebeat_configuration:
filebeat:
config:
modules:
path: ${path.config}/modules.d/*.yml
reload:
enabled: false
inputs:
- type: log
enabled: false
paths:
- /var/log/*.log
logging:
level: info
output:
elasticsearch:
enabled: true
# The list of Elasticsearch nodes to connect to. The events are
# distributed to these nodes in round robin order. If one node becomes
# unreachable, the event is automatically sent to another node.
hosts:
- localhost:9200
# The name of the protocol Elasticsearch is reachable on.
# The options are: http or https.
protocol: http
kafka:
enabled: false
# The list of Kafka broker addresses from where to fetch the cluster metadata. The cluster metadata contain the
# actual Kafka brokers events are published to.
hosts:
[]
# - kafka-01:9092
# - kafka-02:9092
# - kafka-03:9092
logstash:
enabled: false
# The list of known Logstash servers to connect to. If load balancing is
# disabled, but multiple hosts are configured, one host is selected
# randomly (there is no precedence). If one host becomes unreachable,
# another one is selected randomly.
hosts:
[]
# - localhost:5044
# If set to true and multiple Logstash hosts are configured, the output
# plugin load balances published events onto all Logstash hosts.
loadbalance: false
redis:
enabled: false
# The list of Redis servers to connect to. If load balancing is enabled,
# the events are distributed to the servers in the list. If one server
# becomes unreachable, the events are distributed to the reachable
# servers only.
hosts:
[]
# - localhost
# If set to true and multiple hosts or workers are configured, the output
# plugin load balances published events onto all Redis hosts.
loadbalance: true
# You can use processors to filter and enhance data before sending it to the
# configured output
processors:
- add_cloud_metadata: ~
- add_docker_metadata: ~
- add_host_metadata: ~
- add_kubernetes_metadata: ~
setup:
# If this option is set to true, Filebeat loads the sample Kibana
# dashboards from the local kibana directory in the home path of the
# Filebeat installation
dashboards:
enabled: false
template:
# Set to false to disable template loading. If set this to false,
# you must load the template manually.
enabled: true
kibana:
host: localhost:5601
protocol: http
es_filebeat_repo_key: https://artifacts.elastic.co/GPG-KEY-elasticsearch
es_filebeat_repo_url: https://artifacts.elastic.co/packages
# Define major version to install
es_filebeat_major_ver: oss-7.x
es_filebeat_minor_version: 7.8.0