Below is the code to download the audit report. It is written in the Linux shell script.
Script:
Click on the following file to download the script |
---|
Configuring Attributes:
Open the file using the following command:
vi downloadAuditReport.sh
Configure the below attributes, and save the file.
Attributes | Description |
---|---|
userName | Login name of the user that user who is going to download the report. (e.g. admin@openspecimen.com). Note: The user has to be a Super Adminstrator. |
password | The password of the user. (e.g. Login@#123@#) |
url | URL of the server from which you are going to download the report. (e.g. https://example.openspecimen.org) |
startDate | From which date you are going to download the report. (e.g. 2022-12-19) |
endDate | To which date you are going to download. (e.g. 2022-12-20) |
currentTime | This is used to generate the file. |
How to run:
chmod +x downloadAuditReport.sh
./downloadAuditReport.sh
Once successfully running, it will download the zip file of the login audit report in the current working directory. File e.g. os_audit_revisions_20221220_1521.zip
.