Change Compilation Report Path

Move compilation report path to /opt/so/state and mount that foulder in SOC
This commit is contained in:
Corey Ogburn
2024-05-17 15:47:23 -06:00
parent 17518b90ca
commit 0cc57fc240
2 changed files with 2 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ so-soc:
- /opt/so/saltstack:/opt/so/saltstack:rw
- /opt/so/conf/soc/migrations:/opt/so/conf/soc/migrations:rw
- /nsm/backup/detections-migration:/nsm/backup/detections-migration:ro
- /opt/so/state:/opt/so/state:rw
- extra_hosts:
{% for node in DOCKER_EXTRA_HOSTS %}
{% for hostname, ip in node.items() %}

View File

@@ -85,7 +85,7 @@ def compile_yara_rules(rules_dir):
}
# Write total
with open('/opt/sensoroni/logs/detections_yara_compilation-total.log', 'w+') as report_file:
with open('/opt/so/state/detections_yara_compilation-total.log', 'w+') as report_file:
json.dump(compilation_report, report_file)
# Print summary of compilation results