Python client for pulling audit data from the Virtru audit API.
This requires python 3.5.0
or higher
install pipenv using brew
brew install pipenv
install package dependencies
pipenv install --three
run the script using:
pipenv run start
you must provide a .ini
file with the following configuration:
[ApiInfo]
apiTokenId=<apiTokenId>
apiTokenSecret=<apiTokenSecret>
apiHost=audit.virtru.com
apiPath=/api/messages
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
:
to export audit records to json, provide a path to a folder
to export audit records to csv, provide a path to a folder
to export audit records to syslog, provide a host and a port
to pull records since the last time the script was run, set the cursor option
you can also provide a cursor.ini
file, in the .auditexport
directory, which will tell the script where to start pulling records
#cursor.ini
[next-page-start-key]
nextpagecursor=<next-page-cursor>
lastrecordsaved=<recordId>
for verbose logging, use the option: