Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Ant_Devops
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mayi-operation
Ant_Devops
Commits
66e9c683
Commit
66e9c683
authored
Mar 04, 2019
by
ChongmingDu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加filebeat注释
parent
11f1e1c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
roles/filebeat/templates/filebeat.yml
+7
-1
No files found.
roles/filebeat/templates/filebeat.yml
View file @
66e9c683
filebeat.prospectors
:
-
input_type
:
log
paths
:
-
/opt/tomcat/test-base-service/logs/base-service/base-service.log
//日志路径,java中定义的
- /opt/tomcat/test-base-service/logs/base-service/base-service.log
multiline
:
pattern
:
^\d{4}\.\d{2}.\d{2}
negate
:
true
match
:
after
fields
:
//index名称,根据项目名字-服务名字
doc_type
:
crmtest-base-service
output.elasticsearch
:
//es的位置,是安装elk模块的机器ip
hosts
:
[
"
172.16.162.209:9200"
]
//在es里存储index的名字
index
:
"
crmtest-%{+yyyy.MM.dd}"
indices
:
//在es里存储index的名字。根据项目名字-服务名字
- index
:
"
crmtest-base-service-%{+yyyy.MM.dd}"
when.contains
:
//日志的路径,java中定义的
source
:
"
/opt/tomcat/test-base-service/logs/base-service/base-service.log"
protocol
:
"
http"
...
...
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