|
@@ -148,16 +148,28 @@ data:
|
|
|
filebeat.yml: |
|
|
|
filebeat.inputs:
|
|
|
- type: log
|
|
|
+ exclude_lines: ['K8sApiService','VipCache']
|
|
|
+ enabled: true
|
|
|
+ #多行合并
|
|
|
+ multiline.pattern: '^\[[0-9]{4}-[0-9]{2}-[0-9]{2}'
|
|
|
+ multiline.negate: true
|
|
|
+ multiline.match: after
|
|
|
+ multiline.timeout: 30
|
|
|
+ processors:
|
|
|
+ - drop_fields:
|
|
|
+ #删除的多余字段
|
|
|
+ fields: ["beat.version", "host.name", "input.type"]
|
|
|
+ ignore_missing: true
|
|
|
paths:
|
|
|
- "/data/logs/app/all.log"
|
|
|
- setup.template.name: "filebeat"
|
|
|
- setup.template.pattern: "filebeat-*"
|
|
|
+ - "/data/logs/*.log"
|
|
|
setup.dashboards.enabled: true
|
|
|
setup.template.enabled: true
|
|
|
output.elasticsearch:
|
|
|
username: elastic
|
|
|
password: changeme
|
|
|
hosts: ['elasticsearch:9200']
|
|
|
- index: "frontend-filebeat"
|
|
|
+ index: "offline-process-charge-filebeat"
|
|
|
setup.kibana:
|
|
|
- host: 'http://kibana-svc:5601'
|
|
|
+ host: 'qa-kibana.ieasou.cn:80'
|
|
|
+# host: 'kibana-svc:80'
|