API Monitoring and Logging: The Audit Log and Compliance Exports (Part 2)
When an auditor asks who changed a test or what was tested against which control, you need a log of what people did and files that explain themselves. Read the audit log, export evidence, and schedule reports.
This is lesson 9.27, part 2, of Shift-Left API in Depth. Part 1 showed how each API is used. This part covers what people did, and the files that carry your evidence. The Audit Logs screen comes with Professional, the 15-day trial and Enterprise, for administrators. Exporting a file also needs the Export reports permission. The compliance file needs the API security testing add-on. Scheduled reports and choosing how long the log is kept come with the trial and Enterprise.
What does API monitoring and logging cover besides calls?
API monitoring and logging is not only about traffic. When an auditor asks who changed a test, who exported a report or what was tested against which control, you need a log of what people did, and files that still make sense outside the screen.
The audit log, compliance and traceability exports follow the same rules:
- Each file comes from the same data as its screen.
- It starts with notes on how to read it, even as a CSV.
- If it reaches a row limit, it says how many rows were left out.
- Every download is recorded in the audit log.
- Spreadsheet cells that could run as a formula are made harmless.
Both project files, compliance and traceability, need Export reports in that project. Administrators, contributors and reviewers have it by default.
How do you read the audit log?
Open the account menu, then Platform settings, System & Monitoring, Audit Logs. Four counts sit above the filters: total actions and the top action type, user and item. Filter by user, role, action, entity, status or date, or search.
Click an entry to read it in plain words. Field changes shows what was added, removed or changed, with before and after values. Fields named like a password, secret, key or token show as stars. Technical details shows the request behind the action.
With the trial or Enterprise, you can keep logs for 30 days, 90 days, a year or without limit. Other editions keep 90 days. Older entries are deleted permanently, so decide on retention early.
How do you export compliance evidence?
On the Security screen, open the Compliance tab. Each control is Failed (a finding is open), Passed (a check ran in this project and found nothing), Not run yet or No check yet. Download it as CSV or PDF, with one row per control, its result and the checks behind it. The file is evidence of testing, not a certification.
How do you export the traceability matrix?
Open Requirements, then Traceability. The matrix links each requirement to its source document, tests, workflows and results. The download includes how many tests ran and passed. Its notes explain that a passing test is evidence, not proof that a requirement is met, and that no recorded security finding does not mean secure.
How do you export the audit log itself?
Set your filters first, because the export uses exactly what is on screen, then download CSV or PDF. The file states its filter. It lists who did what, when, the result, where from and which fields changed. Changed values are not exported. A CSV stops at 20,000 rows and a PDF at 1,000, so narrow the filter or dates to get the rest.
How do you schedule a report?
- In Analytics, open Dashboards and click Schedule.
- Enter a title, and choose the project, frequency and time.
- Choose a format: HTML email, PDF attachment or JSON data.
- Optionally add a summary of what changed, an API security section and an API load testing section. These three need a single project.
- Add recipients and click Schedule Report.
Use Preview to check a report before it goes out. Sending needs an email profile. In the security section, passing every planned check is described as evidence of testing, not as proof that an API is secure.
What are good habits for logging and evidence?
- Filter before you export, so readers know what is missing.
- Send PDFs to people, and keep CSVs for spreadsheets and archives.
- Choose retention before someone asks for last year's log.
- Keep the files' own explanations when you pass them on.
Try it yourself
With a trial: open Audit Logs, search for a word, open an entry and click Download CSV. Read the file's first line. Then download your project's traceability matrix from the Traceability tab.
Recap
- The audit log says who did what, when and from where.
- Compliance, traceability and the log itself export as CSV or PDF.
- Each file says how to read it and what it left out.
- Good API monitoring best practices include setting retention early and filtering before you export.
Next: lesson 9.28 on API mock responses and failures. The help center also has more on the audit logs.
Try it: With a trial, open Platform settings, System & Monitoring, Audit Logs. Search for a word, open an entry and click Download CSV. Then download your project's traceability matrix from the Traceability tab of Requirements.
Frequently asked questions
What is an API audit log?+
It records what people did: who acted, when, on which item, whether it worked and from which IP address. It is different from API traffic logs. In Shift-Left API, an opened entry also shows which fields changed, with values under password, secret, key or token field names hidden.
Does a compliance export certify that an API is compliant?+
No. The file is evidence of testing, not a certification. It lists each control with its result and the checks behind it, including controls that have not been run and controls that have no check.
Can you send API test reports on a schedule?+
Yes, with the trial or Enterprise. A report can run daily, weekly, every two weeks or monthly, and can include sections on API security and load testing for one project. A section the report's owner may not open is left out, and the report says so.
Related lessons
How often is each API really called, and who says so? Keep test-run analytics apart from real usage, read one API's last 30 days source by source, and find the numbers on a dashboard.
A spec says what's valid, not what the business needs. Upload a requirements document to Shift-Left API, review what it extracts, and generate tests that trace back to each rule.
When somebody sends a request they should not, does your API refuse it? See what's free in every edition, then generate and run security checks, read a finding mapped to OWASP, and see the compliance mapping.
Read more on the blog
A complete guide to building scalable API test reporting — architecture, metrics, dashboards, and stakeholder communication — so QA teams can move from pass/fail logs to data-driven quality engineering.
How API testing programs satisfy PCI-DSS v4.0.1 controls without expanding cardholder-data scope. Tokenization-aware test fixtures, in-scope vs out-of- scope tooling, and a control-mapping cheat sheet for payment teams.