Installation
Running the Script
Execute the script using one of the following commands based on your system's configuration:
Change the starting date:
- Open the auditclient.py file
- Change the start_date_str value
- Save the changes and execute the script below
python3 /var/virtru/audit/audit-export-client/auditclient.py
/usr/bin/python3 /path/to/your/script/auditclient.py
If you are in the audit client directory, use the following command to run the script:
python3 auditclient.py
If you encounter this error:
import requests
ModuleNotFoundError: No module named 'requests'
Navigate to your project directory and use the following commands:
python3 -m venv venv
source venv/bin/activate
pip install requests
Viewing the Output
JSON Output: Navigate to
/var/virtru/audit/audit-export-client/audit_output/cd output.json
CSV Output: Navigate to
/var/virtru/audit/audit-export-client/audit_output/output.csv
Use the ‘cat' command to view the file, e.g., 'cat filename.csv' or 'cat filename.json’