Skip to content

Commit

Permalink
[feat]: update filebeat version
Browse files Browse the repository at this point in the history
  • Loading branch information
Cairry committed May 20, 2024
1 parent baaae17 commit 81011f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ RUN go mod tidy && \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o point ./main.go && \
chmod 777 point

FROM elastic/filebeat:6.8.23
FROM elastic/filebeat:7.17.10

USER root

COPY --from=build /workspace/point /usr/share/filebeat/point/point

COPY assets/entrypoint assets/filebeat/ assets/healthz /usr/share/filebeat/point/

RUN /usr/bin/chmod +x /usr/share/filebeat/point/point /usr/share/filebeat/point/healthz /usr/share/filebeat/point/config.filebeat
RUN apt-get update && \
apt-get -y install python2 && \
/usr/bin/chmod +x /usr/share/filebeat/point/point /usr/share/filebeat/point/healthz /usr/share/filebeat/point/config.filebeat

HEALTHCHECK CMD /usr/share/filebeat/healthz

Expand Down
3 changes: 2 additions & 1 deletion assets/filebeat/filebeat.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{range .configList}}
- type: log
- type: container
stream: stdout
enabled: true
paths:
- {{ .HostDir }}/{{ .File }}
Expand Down

0 comments on commit 81011f2

Please sign in to comment.