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
9622a855
Commit
9622a855
authored
Nov 06, 2018
by
ChongmingDu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add filebeat
parent
0159629c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
58 additions
and
7 deletions
+58
-7
host.yml.examples
+1
-1
roles/base/tasks/main.yml
+6
-3
roles/filebeat/handlers/main.yml
+4
-0
roles/filebeat/tasks/main.yml
+18
-0
roles/filebeat/templates/filebeat.yml
+24
-0
roles/zabbix_agent/templates/zabbix_agentd.conf
+1
-1
standard.yml
+4
-2
No files found.
host.yml.examples
View file @
9622a855
[local]
local1
local1
hostname=local1
[zabbix_server]
web1
...
...
roles/base/tasks/main.yml
View file @
9622a855
...
...
@@ -11,7 +11,7 @@
user
:
name
:
tomcat
shell
:
/bin/bash
password
:
1q2w3e4r
password
:
kk
1q2w3e4r
remove
:
yes
-
name
:
"
Install
git
2.9.5"
...
...
@@ -23,4 +23,7 @@
shell
:
"
cd
/usr/local/;tar
-xvf
git-2.9.5.tar.xz"
-
name
:
"
Install
git"
shell
:
"
cd
/usr/local/git-2.9.5/;./configure
--prefix=/usr
&>/dev/null;make
-j
4&&
make
install
&>/dev/null"
\ No newline at end of file
shell
:
"
cd
/usr/local/git-2.9.5/;./configure
--prefix=/usr
&>/dev/null;make
-j
4&&
make
install
&>/dev/null"
-
name
:
"
set
hostname"
raw
:
hostnamectl set-hostname "{{hostname|quote}}"
\ No newline at end of file
roles/filebeat/handlers/main.yml
0 → 100644
View file @
9622a855
---
-
name
:
"
restart
filebeat"
service
:
name=filebeat state=restarted enabled=yes
\ No newline at end of file
roles/filebeat/tasks/main.yml
0 → 100644
View file @
9622a855
-
name
:
Install elastic repo
yum
:
name
:
https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.6.12-x86_64.rpm
state
:
present
-
name
:
Install filebeat 5.6.12
yum
:
name
:
filebeat
state
:
present
-
name
:
copy filebeat templates
template
:
src
:
filebeat.yml
dest
:
/etc/filebeat/filebeat.yml
notify
:
-
restart filebeat
\ No newline at end of file
roles/filebeat/templates/filebeat.yml
0 → 100644
View file @
9622a855
filebeat.prospectors
:
-
input_type
:
log
paths
:
-
/opt/tomcat/test-base-service/logs/base-service/base-service.log
multiline
:
pattern
:
^\d{4}\.\d{2}.\d{2}
negate
:
true
match
:
after
fields
:
doc_type
:
crmtest-base-service
output.elasticsearch
:
hosts
:
[
"
172.16.162.209:9200"
]
index
:
"
crmtest-%{+yyyy.MM.dd}"
indices
:
-
index
:
"
crmtest-base-service-%{+yyyy.MM.dd}"
when.contains
:
source
:
"
/opt/tomcat/test-base-service/logs/base-service/base-service.log"
protocol
:
"
http"
username
:
"
elastic"
password
:
"
changeme"
\ No newline at end of file
roles/zabbix_agent/templates/zabbix_agentd.conf
View file @
9622a855
...
...
@@ -7,7 +7,7 @@ LogFileSize=0
##### Passive checks related
Server
=
1
27
.
0
.
0
.
1
Server
=
1
72
.
16
.
162
.
209
### Option: ServerActive
...
...
standard.yml
View file @
9622a855
...
...
@@ -8,4 +8,6 @@
roles
:
-
base
-
nginx
\ No newline at end of file
-
nginx
-
zabbix_agent
-
filebeat
\ No newline at end of file
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