Skip to content

Commit 012b11c

Browse files
committed
now also updating logstash-plugins.
1 parent cee1b2c commit 012b11c

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
```
88
docker-compose up -d --build --force-recreate
99
```
10+
### Log
11+
```
12+
docker-compose logs -f
13+
```
1014
### Stop & Remove
1115
```
12-
docker-compose rm -s -f -v
16+
docker-compose rm -sfv
1317
```

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ services:
2121
kibana:
2222
image: docker.elastic.co/kibana/kibana:6.3.2
2323
depends_on:
24-
- elasticsearch
24+
- logstash
2525
ports:
2626
- 5601:5601
2727
networks:

logstash/Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@ FROM docker.elastic.co/logstash/logstash:6.3.2
22

33
LABEL maintainer="alexander.malic@maastrichtuniversity.nl"
44

5-
RUN /usr/share/logstash/bin/logstash-plugin install logstash-patterns-core
6-
7-
#ADD http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz /opt/
8-
#RUN cd /opt && tar -xzvf GeoLite2-City.tar.gz && \
9-
# mv GeoLite2-City*/GeoLite2-City.mmdb . && \
10-
# rm -f GeoLite2-City.tar.gz && \
11-
# rm -rf GeoLite2-City*/
5+
WORKDIR /usr/share/logstash/bin/
6+
RUN logstash-plugin update && \
7+
logstash-plugin install logstash-patterns-core
128

139
COPY ./logstash.conf /etc/logstash/conf.d/logstash.conf
1410

1511
USER logstash
1612
EXPOSE 12201/udp
1713

18-
CMD ["logstash", "-f", "/etc/logstash/conf.d/logstash.conf"]
14+
CMD ["logstash", "-f", "/etc/logstash/conf.d/logstash.conf"]

0 commit comments

Comments
 (0)