From 3688e1727f23f32481d3c0e04b7904f0c0b4df60 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 15 May 2021 22:16:00 +0300
Subject: [PATCH] fixup! Setup beats.

---
 filebeat/filebeat.yml     | 2 ++
 metricbeat/Dockerfile     | 2 +-
 metricbeat/metricbeat.yml | 1 +
 packetbeat/Dockerfile     | 2 +-
 packetbeat/packetbeat.yml | 1 +
 5 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/filebeat/filebeat.yml b/filebeat/filebeat.yml
index 16f4b82..1f59819 100644
--- a/filebeat/filebeat.yml
+++ b/filebeat/filebeat.yml
@@ -17,3 +17,5 @@ processors:
 filebeat.inputs:
   - type: container
     enabled: true
+    paths:
+      - /var/lib/docker/containers/*/*.log
diff --git a/metricbeat/Dockerfile b/metricbeat/Dockerfile
index a5bec57..74b9d79 100644
--- a/metricbeat/Dockerfile
+++ b/metricbeat/Dockerfile
@@ -1,4 +1,4 @@
 FROM docker.elastic.co/beats/metricbeat-oss:7.12.1
 COPY --chown=root:metricbeat metricbeat.yml /usr/share/metricbeat/metricbeat.yml
 #RUN metricbeat test config
-HEALTHCHECK CMD curl --fail http://localhost:5066/stats || exit 1
+HEALTHCHECK CMD curl --fail http://localhost:5077/stats || exit 1
diff --git a/metricbeat/metricbeat.yml b/metricbeat/metricbeat.yml
index 64d6e87..c822f3e 100644
--- a/metricbeat/metricbeat.yml
+++ b/metricbeat/metricbeat.yml
@@ -9,6 +9,7 @@ logging:
 
 http:
   enabled: true
+  port: 5077
 
 processors:
   - add_host_metadata: ~
diff --git a/packetbeat/Dockerfile b/packetbeat/Dockerfile
index 1f6360e..9b03664 100644
--- a/packetbeat/Dockerfile
+++ b/packetbeat/Dockerfile
@@ -1,4 +1,4 @@
 FROM docker.elastic.co/beats/packetbeat-oss:7.12.1
 COPY --chown=root:packetbeat packetbeat.yml /usr/share/packetbeat/packetbeat.yml
 #RUN packetbeat test config
-HEALTHCHECK CMD curl --fail http://localhost:5066/stats || exit 1
+HEALTHCHECK CMD curl --fail http://localhost:5088/stats || exit 1
diff --git a/packetbeat/packetbeat.yml b/packetbeat/packetbeat.yml
index e6c8be9..0bddac6 100644
--- a/packetbeat/packetbeat.yml
+++ b/packetbeat/packetbeat.yml
@@ -9,6 +9,7 @@ logging:
 
 http:
   enabled: true
+  port: 5088
 
 processors:
   - add_host_metadata: ~
-- 
GitLab