← All Articles

How to Audit User Activity

security-compliance beginner security compliance audit-logs reporting data-export

SecureAI records user activity across the platform — logins, conversations, file uploads, model usage, and administrative actions. This guide covers how to view audit logs, export activity data, and use these tools for compliance reporting in your automotive aftermarket organization.

Why Audit User Activity?

Automotive aftermarket organizations using SecureAI may need to track user activity for several reasons:

Accessing the Audit Log

Audit logs are available to administrators in the OpenWebUI admin panel.

  1. Log in to SecureAI with an administrator account.
  2. Navigate to Admin Panel > Settings > Audit Log (or Admin Panel > Activity Log depending on your version).
  3. The log displays a chronological list of events with timestamps, user identities, and action types.

What Gets Logged

SecureAI records the following event types:

Event Type What It Captures
Authentication Login attempts (successful and failed), logouts, password changes, SSO events
Conversations New conversation created, model selected, conversation deleted
File operations Document uploads, file deletions, knowledge base modifications
Model usage Which model was used per conversation, token counts, API calls
Administrative actions User creation/deletion, role changes, settings modifications, API key generation
System events Configuration changes, integration connections, scheduled task execution

Filtering the Audit Log

Use the filter controls at the top of the audit log to narrow results:

Example: To see all failed login attempts in the last 30 days, set the date range to the past month, filter by event type "Authentication", and search for "failed".

Exporting Activity Data

For compliance reporting or offline analysis, you can export audit log data.

Export From the Admin Panel

  1. Navigate to the audit log view.
  2. Apply any filters you need (date range, user, event type).
  3. Click Export (or Download) in the top-right corner of the log view.
  4. Choose your format:
    • CSV — for spreadsheet analysis in Excel or Google Sheets. Best for sharing with non-technical stakeholders.
    • JSON — for programmatic processing or integration with SIEM tools. Preserves full event metadata.

Export via API

For automated or scheduled exports, use the SecureAI API:

# Export audit events for a date range
curl -X GET "https://your-secureai-instance/api/v1/auditlog?from=2026-03-01&to=2026-03-18" \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -o audit-export.json

Parameters:

Scheduling Regular Exports

For organizations that require periodic audit reports:

  1. Use a cron job or scheduled task to call the API export endpoint on a regular cadence (weekly, monthly).
  2. Store exports in a secure, append-only location outside SecureAI for retention compliance.
  3. Consider forwarding events to your organization's SIEM (Splunk, Elastic, etc.) for centralized monitoring.

Compliance Reporting

Building a Compliance Report

A typical compliance report for SecureAI usage includes:

  1. User access summary — who has access, when they last logged in, role assignments.
  2. Usage statistics — number of conversations, queries by department, models used.
  3. Data handling — files uploaded, documents accessed, knowledge base queries.
  4. Security events — failed login attempts, permission changes, API key rotations.
  5. Data retention status — what data is retained, for how long, and deletion records.

Step-by-Step: Monthly Compliance Report

  1. Export the full audit log for the reporting period (see export instructions above).
  2. Pull the user roster: Navigate to Admin Panel > Users and export the current user list.
  3. Cross-reference access: Compare active users against your organization's authorized user list. Flag any discrepancies.
  4. Summarize usage by department: Group conversations and model usage by user role or department. Most spreadsheet tools can pivot on the CSV export.
  5. Flag security events: Filter for failed logins, role changes, and API key events. Document any that required follow-up.
  6. Note data retention actions: If data retention policies triggered automatic deletions during the period, include those records. See the "Configuring Data Retention Policies" article for retention setup.
  7. Archive the report: Store the completed report per your organization's record-keeping requirements.

Common Compliance Frameworks

SecureAI audit capabilities support common compliance needs in the automotive aftermarket:

Framework / Requirement Relevant Audit Data
SOC 2 Type II Authentication logs, access controls, change management events
GDPR / CCPA Data access logs, deletion records, consent tracking
Internal IT policy Usage reports, failed login monitoring, API key lifecycle
Customer data agreements File upload/deletion logs, conversation data handling records

Best Practices

Log Retention

Access Control for Audit Data

Monitoring and Alerting

Documentation

Troubleshooting

Audit log shows no events

Export is missing expected events

Large exports time out

Related Articles