Skip to main content

Authenticated Audit Logs

Retrieves authenticated audit logs from Arize AI platform, capturing user activities and GraphQL operations.

Sync Type: Incremental

Requirements

Before configuring this input, you need to:

  1. Create an Arize API Key:

    • Log in to your Arize account.
    • Navigate to your account settings.
    • Generate a service API key in API Keys > Service Keys.
    • Copy and securely store the API key.
  2. Required Permissions:

    • While creating the API key select the role as Admin.
    • In Account Settings > Service Bots, there will be a record associated with the name of your API key. Make sure the role here is Admin.

Details

The Arize Authenticated Audit Logs input connects to Arize's GraphQL API to fetch user activity logs. It tracks:

  • GraphQL operations performed by users.
  • Operation names and query text.
  • Variables passed with operations.
  • User information (email).
  • Timestamps of activities.

State Management: This input uses incremental sync with an ascending cursor pattern. It tracks the last seen log entry by ID and timestamp, ensuring no duplicate records are fetched. On the first sync, it fetches data from the last 180 days unless a different backfill start time is specified.

Pagination: The input automatically handles pagination using cursor-based pagination from the Arize GraphQL API, fetching all available audit logs page by page.

Configuration

Settings

SettingTypeRequiredDefaultDescription
Intervalintegeryes10Time interval in seconds between API calls
Backfill Start TimestringNo180 days agoThe date to start fetching data from. If not specified, no past records will be fetched.

Secrets

SecretTypeRequiredDescription
API KeystringYesYour Arize API key

Rate Limits

ScopeLimitWindowNotes
API Requests1001 minuteApplied at client level

Headers: x-api-key, Content-Type

The input automatically handles rate limiting by throttling requests to approximately 1.67 requests per second (100 requests per minute). It also includes automatic retry logic with up to 3 attempts for failed requests.

Troubleshooting

Common Issues

  1. Authentication Failures:

    • Verify your API key is valid and has not expired
    • Ensure the API key has permissions to access account audit logs
    • Check that you're using the correct API key for your Arize account
  2. No Data Returned:

    • Verify that audit logs exist in the time range you're querying
    • Check if your account has audit logging enabled
    • Ensure the backfill start time is not set too far in the future
  3. GraphQL Errors:

    • Check the error message in the logs for specific GraphQL errors
    • Verify the API endpoint URL is correct
    • Ensure your Arize account supports the authenticatedAuditLogs query
  4. Rate Limit Issues:

    • The input automatically handles rate limiting
    • If you see rate limit warnings, the input will wait and retry
    • Consider reducing page_size if you're consistently hitting rate limits