Commit f946e1e5 authored by yuzhanyong's avatar yuzhanyong

add log-pilot

parents
Pipeline #189 failed with stages
FROM registry.cn-hangzhou.aliyuncs.com/acs/log-pilot:0.9.7-filebeat
WORKDIR /pilot
COPY filebeat.tpl /pilot/filebeat.tpl
docker build -t 10.100.9.22:2080/public/log-pilot:v1 .
docker push 10.100.9.22:2080/public/log-pilot:v1
{{range .configList}}
- type: log
enabled: true
paths:
- {{ .HostDir }}/{{ .File }}
multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
multiline.negate: true
multiline.match: after
multiline.timeout: 10s
multiline.max_lines: 10000
scan_frequency: 10s
fields_under_root: true
{{if .Stdout}}
docker-json: true
{{end}}
{{if eq .Format "json"}}
json.keys_under_root: true
{{end}}
fields:
{{range $key, $value := .Tags}}
{{ $key }}: {{ $value }}
{{end}}
{{range $key, $value := $.container}}
{{ $key }}: {{ $value }}
{{end}}
tail_files: false
close_inactive: 2h
close_eof: false
close_removed: true
clean_removed: true
close_renamed: false
{{end}}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment