-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathfilebeat.yml
More file actions
41 lines (36 loc) · 1.07 KB
/
Copy pathfilebeat.yml
File metadata and controls
41 lines (36 loc) · 1.07 KB
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
filebeat.inputs:
- type: log
paths:
- /logs/application.log
tags: ["filebeat", "log_file"]
# - type: docker
# combine_partial: true
# containers:
# ids:
# - "*"
# json.keys_under_root: true
# json.message_key: log
# json.overwrite_keys: true
# json.ignore_decoding_error: true
# fields_under_root: true
# fields:
# app_id: service-spring
# tags: ['sbrest', 'application.log']
# processors:
# - add_docker_metadata: ~
# - decode_json_fields:
# fields: ["message"]
# - drop_event:
# when:
# not:
# has_fields: ['docker.container.labels.filebeat_enable']
# output:
# logstash.hosts: ["host.docker.internal:5044"]
output.elasticsearch:
hosts: ["elasticsearch:9200"]
# Write Filebeat own logs only to file to avoid catching them with itself in docker log files
logging.to_files: false
logging.to_syslog: false
# X-pack optional module
# xpack.monitoring.enabled: false
# xpack.monitoring.elasticsearch.hosts: ["elasticsearch:9200"]