Python client for pulling audit data from the Virtru audit API.
This requires python 3.5.0
or higher
brew upgrade
brew update
brew upgrade openssl
brew install python
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 -m pip --version
/usr/bin/python3 -m pip install requests
pip3 install pandas
config.read('/Users/first.lastname/Desktop/audit-export-client-v2/config.ini')
Run the script using: /opt/homebrew/bin/python3 /Users/first.lastname/Desktop/audit-export-client-v2/auditclient.py
you must provide a .ini
file with the following configuration:
[ApiInfo]
apiTokenId=<apiTokenId>
apiTokenSecret=<apiTokenSecret>
apiHost="api.virtru.com"
apiPath="/audit/api/v1/events"
the start/end dates are hard coded to pull records automatically. NOTE:
the end date is current date and time; the start date is now - 365 days ISO 8601
format. Currently default to start=2010-01-01
end=2100-01-01
:
uncomment the date prompt to specify start/end dates for pulling records. NOTE:
all dates must be in a valid ISO 8601
format. Currently default to start=2010-01-01
end=2100-01-01
:
the output directory contain the human readable files
the output directory contain the machine readable files