<@ULVA73B9P> i'd like to access audit logs program...
# ask-marvin
m
@Marvin i'd like to access audit logs programmatically. the api doesn't seem to have the response that the logs have on the ui
m
Sure, I can help you with that. To access the audit logs programmatically, you might need to use a different endpoint or method that specifically provides access to these logs. However, without knowing the specific API you're using, it's hard for me to provide a detailed solution. If you're using a popular API, there might be community resources or forum posts that can guide you. Would you like me to search for such resources? If so, please provide the name of the API you're using.
m
m
Based on my search, it seems that you can access log records via the Prefect API. Here are some resources that might be helpful: 1. API Reference - Prefect Docs: This is the main API documentation for Prefect. It might contain more detailed information about accessing logs. 2. Logging - Prefect Docs: This guide talks about how you can view and filter logs in the Prefect UI or Prefect Cloud, or access log records via the API. It also discusses how to customize log levels for flows and tasks. 3. Audit Log - Prefect Docs: This page provides information about the Audit Log feature in Prefect. If you're still having trouble accessing the logs programmatically, it might be helpful to reach out to the Prefect community or support for more specific guidance.