-
Notifications
You must be signed in to change notification settings - Fork 8
/
filebeat.yml
52 lines (44 loc) · 1.24 KB
/
filebeat.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
filebeat.config:
prospectors:
path: ${path.config}/prospectors.d/*.yml
reload.enabled: true
modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: true
# config file input
filebeat.inputs:
- type: log
enabled: true
paths:
- ${INPUT_PATH:/volume/*.log}
processors:
- add_cloud_metadata:
# elasticsearch output info
output.elasticsearch:
hosts: ['${ES_HOST:127.0.0.1}:${ES_PORT:9200}']
username: ${ES_USERNAME:elastic}
password: ${ES_PASS:changeme}
# index: "${INDEX_NAME:filebeat}-%{[beat.version]}-%{+yyyy.MM.dd}"
timeout: 180
backoff.max: 120
# kibanan setup
setup.kibana:
host: "${KIBANA_HOST:127.0.0.1}:${KIBANA_PORT:5601}"
username: "${ES_USERNAME:elastic}"
password: "${ES_PASS:changeme}"
setup.template.enabled: true
# if you change output.elasticsearch you have to change this two settings
# setup.template.name: "${INDEX_NAME:filebeat}"
# setup.template.pattern: "${INDEX_NAME:filebeat}-*"
# enable dashboards
setup.dashboards.enabled: true
# setup.dashboards.index: "${INDEX_NAME:filebeat}-*"
setup.dashboards.retry.enabled: true
setup.dashboards.retry.interval: 3
setup.dashboards.retry.maximum: 20
# enable modules
filebeat.modules:
- module: nginx
- module: mysql
- module: apache2
- module: mongodb