Skip to content

Python based Virtru Audit Export Client.

Notifications You must be signed in to change notification settings

virtru/audit-export-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtru Audit Export Client v2

Python client for pulling audit data from the Virtru audit API.

Getting started

This application currently works on MacOS

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

Update with the actual path to your config.ini

example:

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"

Options

1

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:

2

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:

--start=<start-date> --end=<end-date>

-See the 'audit_output' path for the audit file

the output directory contain the human readable files

--csv

the output directory contain the machine readable files

--json