Hello. I tried accessing our audit logs via /audit...
# pactflow
g
Hello. I tried accessing our audit logs via /audit, but all we get are entries from over 1 month ago. Are there special parameters to use? I don't see anything in the docs about it.
m
It's designed to be ingested and not queried as hoc (it has a 30 day retention window I think)
g
that's the link I used, but I only get results from
Copy code
"timestamp": "2025-05-10T00:00:40.742+00:00",
to
Copy code
"timestamp": "2025-05-10T00:05:59.929+00:00",
is there a way to verify everything is OK with the audit logs? it's worrying that we only receive logs from 1 month ago
m
Sorry, I meant to look at the links to the next page in the response body
The oldest entries are first
g
yeah, I managed to get them all by following the next refs. so we have to keep track of the entries?
m
Yes, basically. The idea for the audit trail was for it to be ingested into a SOC or some log aggregation system, rather than a generally queryable API. We might change that, but the retention window is quite small which is why we encourage ingestion
g
yeah, it was my first time using it so I was a bit lost at first, but now we'll ingest it properly. thanks