Skip to main content

Usage

Lists audit logs for the signed in user with filtering support.
firectl audit-logs list [flags]

Examples

# List all audit logs from the past 30 days
firectl audit-logs list

# Filter by deployment resource
firectl audit-logs list --filter 'resource="accounts/my-account/deployments/abc123"'

# Filter by model resource  
firectl audit-logs list --filter 'resource="accounts/my-account/models/model123"'

# Filter by message
firectl audit-logs list --filter 'message="CreateDeployment"'

# Filter by user email (use filter, not --email)
firectl audit-logs list --filter 'email="user@example.com"'

# Combine multiple filters
firectl audit-logs list --filter 'resource="accounts/my-account/deployments/abc123" AND message="CreateDeployment"'

# List logs from a specific date range with filters
firectl audit-logs list --start 2025-01-01 --end 2025-01-02 --filter 'resource="accounts/my-account/deployments/abc123"'

firectl audit-logs list --start 2025-01-01 --filter 'resource="accounts/my-account/deployments/abc123"'

Flags

      --end string          The end date for audit logs in YYYY-MM-DD format
      --filter string       Only resources satisfying the provided filter will be listed. See https://google.aip.dev/160 for the filter grammar.
  -h, --help                help for list
      --no-paginate         List all resources without pagination.
      --order-by string     A list of fields to order by. To specify a descending order for a field, append a " desc" suffix
      --page-size int32     The maximum number of resources to list.
      --page-token string   The page to list. A number from 0 to the total number of pages (number of entities / page size).
      --start string        The start date for audit logs in YYYY-MM-DD format. If unspecified, the default is 30 days before now.

Global flags

  -a, --account-id string   The Fireworks account ID. If not specified, reads account_id from ~/.fireworks/auth.ini.
      --api-key string      An API key used to authenticate with Fireworks.
  -p, --profile string      fireworks auth and settings profile to use.