-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.yml
51 lines (37 loc) · 1.03 KB
/
config.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
filebeat.autodiscover:
providers:
- type: docker
hints.enabled: true
co.elastic.logs/module: nginx
co.elastic.logs/fileset.stdout: access
co.elastic.logs/fileset.stderr: error
co.elastic.logs/json.keys_under_root: true
co.elastic.logs/json.add_error_key: true
co.elastic.logs/json.message_key: log
processors:
- add_docker_metadata:
host: "unix:///var/run/docker.sock"
- add_locale:
format: offset
- add_host_metadata:
netinfo.enabled: true
logging.tostderr: true
logging.level: error
output.elasticsearch:
hosts: ["${ELASTICSEARCH_HOSTS}"]
setup.ilm:
enabled: true
policy_name: "logs"
rollover_alias: "logs-current"
pattern: "logs-{now/d}-000001"
policy_file: ilm-config.json
# use this if you need to re-create ILM policy
# overwrite: true
setup.template.name: logs
filebeat.config.modules.path: /usr/share/filebeat/modules.d/*.yml
setup.kibana:
host: "${KIBANA_URI}"
# output.console:
# pretty: true
# logging.json: true
# logging.metrics.enabled: false