mirror of
https://github.com/krislamo/graylog_demo
synced 2024-12-16 06:50:35 +00:00
Remove fluentd container and minor reorganization
This commit is contained in:
parent
a233c8c043
commit
4a0d92fa97
3
Vagrantfile
vendored
3
Vagrantfile
vendored
@ -37,7 +37,8 @@ Vagrant.configure("2") do |config|
|
|||||||
cp --update /vagrant/td-agent.repo /etc/yum.repos.d/
|
cp --update /vagrant/td-agent.repo /etc/yum.repos.d/
|
||||||
yum check-update
|
yum check-update
|
||||||
yum install -y td-agent
|
yum install -y td-agent
|
||||||
systemctl start td-agent
|
cp /vagrant/td-agent.conf /etc/td-agent/td-agent.conf
|
||||||
|
systemctl restart td-agent
|
||||||
systemctl -q enable td-agent
|
systemctl -q enable td-agent
|
||||||
|
|
||||||
# Convenience
|
# Convenience
|
||||||
|
@ -25,18 +25,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
|
||||||
fluentd:
|
|
||||||
build: ./fluentd
|
|
||||||
restart: always
|
|
||||||
volumes:
|
|
||||||
- /var/log:/var/log/hostlogs
|
|
||||||
networks:
|
|
||||||
- graylog
|
|
||||||
ports:
|
|
||||||
- 24224:24224
|
|
||||||
- 24224:24224/udp
|
|
||||||
- 5140:5140/udp
|
|
||||||
|
|
||||||
mongo:
|
mongo:
|
||||||
image: mongo:4.2.2
|
image: mongo:4.2.2
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
FROM fluent/fluentd:v1.9.0-debian-1.0
|
|
||||||
USER root
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get -y install --no-install-recommends wget \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
RUN gem install fluent-plugin-rewrite-tag-filter
|
|
||||||
RUN gem install gelf
|
|
||||||
RUN cd /fluentd/plugins \
|
|
||||||
&& wget -q https://raw.githubusercontent.com/emsearcy/fluent-plugin-gelf/master/lib/fluent/plugin/out_gelf.rb
|
|
||||||
COPY fluent.conf /fluentd/etc/
|
|
Loading…
Reference in New Issue
Block a user