-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy path02-filebeat.yml
45 lines (33 loc) · 1.14 KB
/
02-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
# ============================== Filebeat inputs ===============================
filebeat.inputs:
- type: filestream
id: 02-ecs-filestream
enabled: true
paths:
- ${app_log}
parsers:
- ndjson:
keys_under_root: true
overwrite_keys: true
add_error_key: true
expand_keys: true
# ============================== Filebeat modules ==============================
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
# ======================= Elasticsearch template setting =======================
setup.template.settings:
index.number_of_shards: 1
# =============================== Elastic Cloud ================================
cloud.id: "${cloud_id:CHANGEME}"
cloud.auth: "${cloud_auth:CHANGEME}"
# ================================== Outputs ===================================
output.elasticsearch:
hosts: [ "${elasticsearch_host:CHANGEME}" ]
# ================================= Processors =================================
processors:
- add_host_metadata:
when.not.contains.tags: forwarded
- add_cloud_metadata: ~
- add_docker_metadata: ~
- add_kubernetes_metadata: ~