Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cary committed Apr 25, 2017
1 parent 23ccc53 commit a3ff658
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 0 deletions.
28 changes: 28 additions & 0 deletions elk5/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '2'

services:
elasticsearch-xpack5:
build: ./elasticsearch-xpack5
ports:
- "9200:9200"
environment:
ES_JAVA_OPTS: '-Xms1024m -Xmx1024m'
restart: always
fluentd-es:
build: ./fluentd-es
depends_on:
- elasticsearch-xpack5
ports:
- "24224:24224"
restart: always
kibana-xpack5:
build: ./kibana-xpack5
depends_on:
- elasticsearch-xpack5
- fluentd-es
ports:
- "5602:5601"
environment:
ELASTICSEARCH_URL: 'http://172.16.1.12:9200'
XPACK_MONITORING_ENABLED: 'false'
restart: always
7 changes: 7 additions & 0 deletions elk5/elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM elasticsearch:5.1.1

#ADD ./x-pack-5.0.1.zip /

#RUN bin/elasticsearch-plugin install file:///x-pack-5.0.1.zip

#COPY ./x-pack-5.0.1.jar /usr/share/elasticsearch/plugins/x-pack/
8 changes: 8 additions & 0 deletions elk5/fluentd/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM fluent/fluentd:v0.12.30

RUN gem sources --remove https://rubygems.org/
RUN gem sources -a https://ruby.taobao.org/
RUN gem sources -u
RUN gem install fluent-plugin-elasticsearch

COPY ./fluent.conf /fluentd/etc/
35 changes: 35 additions & 0 deletions elk5/fluentd/fluent.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<source>
@type forward
@id input1
@label @mainstream
port 24224
</source>

<filter **>
@type stdout
</filter>

<label @mainstream>
<match **>
@type elasticsearch
host 172.16.1.12
port 9200
#user elastic
#password Email123456
scheme http
index_name fluentd
type_name fluentd
logstash_format true
reload_connections false
</match>
#<match **>
# @type file
# @id output1
# path /fluentd/log/data.*.log
# symlink_path /fluentd/log/data.log
# append true
# time_slice_format %Y%m%d
# time_slice_wait 10m
# time_format %Y%m%dT%H%M%S%z
#</match>
</label>
5 changes: 5 additions & 0 deletions elk5/kibana/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM kibana:5.1.1

#ADD ./x-pack-5.0.1.zip /

#RUN kibana-plugin install file:///x-pack-5.0.1.zip

0 comments on commit a3ff658

Please sign in to comment.