Area: API Issues
Sub-Area: Audit and Compliance
Applies to: OSS + Cloud
Issue
Organizations need to track who made changes to DataHub ingestion recipes for compliance and governance purposes. This includes identifying who created or modified ingestion sources and when.
You Might Be Asking
- How can I see who last modified an ingestion recipe?
- Where are audit events for ingestion sources stored in DataHub?
- Is there an audit page in the Cloud settings for ingestion changes?
Solution
Use the Audit Events Search API to see who created or changed an ingestion source and when.
- Send a
POSTrequest to the/audit/searchendpoint of the audit events API. The Audit Events Search Guide gives the full URL, the request body and the paging details. Authenticate with a Personal Access Token. - Set the time range with the
startTimeandendTimequery parameters, in milliseconds since epoch. If you leave them out,startTimedefaults to one day ago andendTimedefaults to now. - Set
sizeto control how many events come back. The default is 10. - Filter to the event types
CreateIngestionSourceEventandUpdateIngestionSourceEvent. Both are in the default list of usage event types, and usage export is on by default.
Each event includes timestamp, actorUrn (who made the change), sourceIP and eventSource. The eventSource value is the API the change came through: RESTLI, OPENAPI, GRAPHQL or SSO_SCIM.
When more results are available, the response includes nextScrollId.
Additional Notes
- The search counts up to 10,000 matching events in
total. Use narrow time ranges for long periods. - On DataHub Cloud, the AI settings have a tab labeled Audit. You can search it by tool, actor, session, conversation URN and params. Use the Audit Events Search API, not this tab, to look up ingestion source changes.
Related Documentation
Tags: audit-logs, compliance, governance, ingestion-recipes, api, openapi, audit-events, recipe-changes, tracking