Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dockerfile
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
dockerfile
Commits
f946e1e5
Commit
f946e1e5
authored
Jun 18, 2020
by
yuzhanyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log-pilot
parents
Pipeline
#189
failed with stages
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
0 deletions
+41
-0
log-pilot/Dockerfile
log-pilot/Dockerfile
+5
-0
log-pilot/cmd.txt
log-pilot/cmd.txt
+3
-0
log-pilot/filebeat.tpl
log-pilot/filebeat.tpl
+33
-0
No files found.
log-pilot/Dockerfile
0 → 100644
View file @
f946e1e5
FROM
registry.cn-hangzhou.aliyuncs.com/acs/log-pilot:0.9.7-filebeat
WORKDIR
/pilot
COPY
filebeat.tpl /pilot/filebeat.tpl
log-pilot/cmd.txt
0 → 100644
View file @
f946e1e5
docker build -t 10.100.9.22:2080/public/log-pilot:v1 .
docker push 10.100.9.22:2080/public/log-pilot:v1
log-pilot/filebeat.tpl
0 → 100644
View file @
f946e1e5
{{
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
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment