audit-logging

Log admin create, update, delete operations and login events to PostgreSQL.

Updated Nov 2, 2025
One-click install
npx skills add https://github.com/PrasadTelasula/EvokeQOne --skill audit-logging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audit-logging
Source: https://github.com/PrasadTelasula/EvokeQOne/tree/main/.claude/skills/audit-logging
Command: npx skills add https://github.com/PrasadTelasula/EvokeQOne --skill audit-logging

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables comprehensive audit logging for all admin actions in the QA Team Portal, capturing user ID, timestamp, IP address, and user agent to support security, compliance, and debugging.

Core Features & Use Cases

  • Log create, update, delete operations on admin resources
  • Capture user_id, timestamp, IP address, and user agent
  • Display audit trail in the admin panel
  • Export logs to CSV
  • Retention policy: 1 year minimum

Quick Start

Integrate the AuditService into admin endpoints and call log_action for each relevant action, passing the current user, action type, entity_type, and the HTTP request context to generate a complete audit trail.

Frequently Asked Questions about audit-logging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement audit logging for admin actions?

Audit logging captures all admin actions—create, update, delete, and logins—with user ID, timestamp, IP address, and user agent. Integrate the AuditService into your admin endpoints and call log_action with the current user, action type, entity details, and HTTP request context to generate a complete audit trail stored in PostgreSQL.

What data does audit logging capture for compliance?

Audit logging records user_id, timestamp, IP address, user agent, entity_type, entity_id, old_values, and new_values for every admin action. This ensures complete traceability for security investigations and compliance audits, with a minimum retention period of one year.

Can I export audit logs from the admin panel?

Yes. Audit logging supports exporting captured logs to CSV directly from the admin panel, allowing you to analyze admin actions, generate compliance reports, and archive audit trails outside your application.

How does audit logging work with PostgreSQL?

Audit logging uses a dedicated PostgreSQL AuditLog model and a middleware-integrated audit service to automatically log all admin endpoint actions. Each log entry is persisted to the database and enforced with a one-year retention policy.

Do I need to modify every admin endpoint to enable audit logging?

No. Audit logging is implemented via middleware and a dedicated audit service, allowing centralized configuration across all admin endpoints without modifying individual route handlers. Integration requires only calling log_action at relevant points.

What's the difference between audit logging and standard application logging?

Audit logging is specialized for compliance and security: it records *who* performed *what* action *when* and *from where*, capturing old and new values for forensic reconstruction. Standard application logs typically track system events and errors, not user accountability.