-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.filebeat.yml
38 lines (31 loc) · 895 Bytes
/
.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
path.data: $logspath/filebeat/data #to retain the state even if the filebeat pod restarts
filebeat.inputs:
- type: log
enabled: true
paths:
- $logspath/logs_*/*.log
multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
multiline.negate: true
multiline.match: after
fields:
log_type: springboot_default
setup:
ilm.enabled: false #this is needed for docker image from 7.x versions
template:
name: $app_name
pattern: $app_name
settings.index.number_of_shards: 3
output.logstash:
hosts: $logstash_hosts
index: $app_name
monitoring.enabled: true
monitoring.elasticsearch:
hosts: $elasticsearch_hosts
# proxy_url: http://$http_proxy_host:$http_proxy_port
#output.elasticsearch:
# hosts: $elasticsearch_hosts
# proxy_url: http://$http_proxy_host:$http_proxy_port
# index: $app_name
processors:
- add_host_metadata: ~
- add_cloud_metadata: ~