Skip to content

Commit

Permalink
Issue #3059: Use different data paths for filebeat instances in edge
Browse files Browse the repository at this point in the history
  • Loading branch information
tcibinan committed Apr 11, 2023
1 parent 55f4de6 commit c6d7c76
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 0 additions & 2 deletions deploy/docker/cp-edge/filebeat-config/filebeat-audit-dav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@ filebeat:
processors:
- drop_fields:
fields: ["log", "offset", "beat", "agent", "log.offset", "esc" ]
logging.files:
name: filebeat-audit-dav
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@ filebeat:
processors:
- drop_fields:
fields: ["log", "offset", "beat", "agent", "log.offset", "esc" ]
logging.files:
name: filebeat-security-log
10 changes: 8 additions & 2 deletions deploy/docker/cp-edge/init
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,14 @@ nohup bash /etc/maintenance/crontab.sh &> /dev/null &
MAINTENANCE_CRON_PID="$!"

# Run Filebeat instances
nohup filebeat -c filebeat-security-log.yml &
nohup filebeat -c filebeat-audit-dav.yml &
nohup filebeat \
-path.data /var/lib/filebeat/security-log \
-path.logs /var/log/filebeat/security-log \
-c filebeat-security-log.yml &
nohup filebeat \
-path.data /var/lib/filebeat/audit-dav \
-path.logs /var/log/filebeat/audit-dav \
-c filebeat-audit-dav.yml &

# Prepare the static assets
for static_file in /etc/nginx/static/*; do
Expand Down

0 comments on commit c6d7c76

Please sign in to comment.