Audit Logs

Track all administrative actions and changes

Audit logs provide a complete record of all significant actions taken within your UserVote instance. Use them for security, compliance, and troubleshooting.

What Gets Logged

Audit logs capture:

User Actions:

  • Login attempts (success/failure)
  • Password changes
  • Profile updates
  • Role changes

Admin Actions:

  • User management changes
  • Product modifications
  • Settings changes
  • Idea status updates

Content Actions:

  • Idea creation/editing/deletion
  • Comment moderation
  • Vote allocations
  • Report actions

Viewing Audit Logs

Access audit logs:

  1. Go to AdminAnalytics
  2. Click Audit Logs tab
  3. Or navigate to /admin/analytics/audit

Log Entry Information:

  • Timestamp
  • User who performed action
  • Action type
  • Target (what was affected)
  • IP address
  • User agent

Filtering Logs

Find specific entries:

By Time:

  • Date range picker
  • Quick filters (today, this week, etc.)

By User:

  • Search by name or email
  • Filter by role

By Action Type:

  • Login/logout
  • Create/update/delete
  • Admin actions only

By Target:

  • Specific idea
  • Specific product
  • Settings changes

Log Retention

Audit log storage policies:

Retention Period:

  • Default: 90 days
  • Extended: 1 year (configurable)
  • Compliance: Custom periods

Storage:

  • Logs are stored securely
  • Immutable once written
  • Backed up regularly

Exporting Logs

Export for compliance:

Export Formats:

  • CSV
  • JSON
  • PDF report

Scheduled Exports:

  • Daily backup
  • Weekly compliance report
  • Custom schedules

API Access:

  • Programmatic access available
  • Integrate with SIEM systems

Security Best Practices

Use audit logs effectively:

Regular Reviews:

  • Check for unusual patterns
  • Monitor failed logins
  • Track admin actions

Alerting:

  • Set up alerts for suspicious activity
  • Multiple failed logins
  • Bulk deletions

Compliance:

  • Document review schedule
  • Maintain export archives
  • Follow data retention policies

Related Links