Skip to content

Commit

Permalink
Fetch cloud resources periodically
Browse files Browse the repository at this point in the history
  • Loading branch information
ramanan-ravi committed Jun 10, 2024
1 parent 1c65ff2 commit 4b74cdb
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deepfence_agent/plugins/YaraHunter
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ routes:

- local_path: var/log/fenced/cloud-scanner-log/cloud_scanner_status.log
remote_path: /deepfence/ingest/cloud-compliance-status

- local_path: var/log/fenced/cloud-resources/cloud_resources.log
remote_path: /deepfence/ingest/cloud-resources
3 changes: 2 additions & 1 deletion deepfence_agent/plugins/etc/run_shipper.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
BATCH_SIZE=${1:-100}
TRUNCATE_SIZE=${2:-10}

PATH=${DF_INSTALL_DIR:-/home/deepfence}

exec $PATH/bin/shipper --base-path="${DF_INSTALL_DIR:-/}" --truncate-size=2 --routes=$PATH/routes.yaml --batch-size=$BATCH_SIZE
exec $PATH/bin/shipper --base-path="${DF_INSTALL_DIR:-/}" --truncate-size=$TRUNCATE_SIZE --routes=$PATH/routes.yaml --batch-size=$BATCH_SIZE
2 changes: 1 addition & 1 deletion deepfence_agent/plugins/yara-rules
Submodule yara-rules updated 1 files
+1 −1 build-timestamp
2 changes: 1 addition & 1 deletion deepfence_bootstrapper/assets/config-cloud.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[process:shipper]
command=sudo -E -u deepfence $DF_INSTALL_DIR/run_shipper.sh 300
command=sudo -E -u deepfence $DF_INSTALL_DIR/run_shipper.sh 300 250
path=$DF_INSTALL_DIR/bin/shipper
autostart=true
autorestart=true
Expand Down

0 comments on commit 4b74cdb

Please sign in to comment.