From f1ae2617c2ef4a88b472d2790d72608212b9c26f Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Wed, 14 Aug 2019 08:44:54 -0400 Subject: [PATCH] Filebeat Module - Change log dir mapping --- salt/filebeat/etc/filebeat.yml | 2 +- salt/filebeat/init.sls | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/filebeat/etc/filebeat.yml b/salt/filebeat/etc/filebeat.yml index 7089f85ea..51a751105 100644 --- a/salt/filebeat/etc/filebeat.yml +++ b/salt/filebeat/etc/filebeat.yml @@ -40,7 +40,7 @@ logging.to_files: true logging.files: # Configure the path where the logs are written. The default is the logs directory # under the home path (the binary location). - path: /var/log/filebeat + #path: /var/log/filebeat # The name of the files where the logs are written to. name: filebeat.log diff --git a/salt/filebeat/init.sls b/salt/filebeat/init.sls index e7c707bc7..b7597730c 100644 --- a/salt/filebeat/init.sls +++ b/salt/filebeat/init.sls @@ -69,7 +69,7 @@ so-filebeat: - user: root - extra_hosts: {{ MASTER }}:{{ MASTERIP }} - binds: - - /opt/so/log/filebeat:/var/log/filebeat:rw + - /opt/so/log/filebeat:/usr/share/filebeat/logs:rw - /opt/so/conf/filebeat/etc/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro - /nsm/bro:/nsm/bro:ro - /opt/so/log/suricata:/suricata:ro