-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilebeat.yml
More file actions
29 lines (29 loc) · 757 Bytes
/
filebeat.yml
File metadata and controls
29 lines (29 loc) · 757 Bytes
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
##ilebeat-6.2.3
filebeat.prospectors:
- type: log
enabled: true
paths:
- /var/log/*.log
fields:
log_source: 31-system
tags: 31-system-log
include_lines: ['^ERR', '^WARN', 'ERR', 'WARN', 'error', 'fault', 'failed', 'reboot', 'shutdown', 'disconnect', 'refused', 'not found', 'unregister']
- type: log
enabled: true
paths:
- /data/logs/*.log
fields:
log_source: 31-nginx
tags: 31-nginx-log
include_lines: ['^ERR', '^WARN', 'ERR', 'WARN', 'error', '404', '504']
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: true
setup.template.settings:
index.number_of_shards: 3
name: hkstaging31
setup.kibana:
host: "kib1.XX.cn:5601"
output.logstash:
hosts: ["lgh1.XX:5044"]
logging.level: error