2021-05-06 02:59 AM
Hello all,
A quick guide how to export all deployed ESA rules using "Mongoexport" tool:
**CSV Mode requires a fields list***
mongoexport -u deploy_admin -p <deploy_admin password> --authenticationDatabase admin --db correlation-server --collection moduleSettingsEntity --type=csv --fields <choose your fields sepereted by comma> --out /tmp/ESArules.csv
For example, command to export rules to CSV with some fields:
mongoexport -u deploy_admin -p <deploy_admin password> --authenticationDatabase admin --db correlation-server --collection moduleSettingsEntity --type=csv --fields _id,displayName,enabled,lastModifiedBy,createdBy --out /tmp/ESArules.csv
mongoexport -u deploy_admin -p <deploy_admin password> --authenticationDatabase admin --db correlation-server --collection moduleSettingsEntity --type=json --out /tmp/NEWrules.json
Regards Maor 😎