Security Audit Logging
Structured security audit logging for compliance, forensics, and SIEM integration across Node.js, Python, and Java.
- CCM score
- 39 of 100
- skills.sh installs
- 571
- GitHub stars
- 396
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers audit trails for security events, user actions, and system changes, with retention policies and SIEM shipping
- Includes a Node.js audit logger built on
winstonwith file rotation and an Elasticsearch transport, plus Python and Java guides - Guides logging of all security events with UTC timestamps, user context, and request IDs, while excluding passwords and secrets
- Designed for teams meeting SOC 2, HIPAA, or PCI-DSS requirements and building breach detection or forensic capability
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill security-audit-logging -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Security Audit Logging
Table of Contents
Overview
Implement comprehensive audit logging for security events, user actions, and system changes with structured logging, retention policies, and SIEM integration.
When to Use
- Compliance requirements (SOC 2, HIPAA, PCI-DSS)
- Security monitoring
- Forensic investigations
- User activity tracking
- System change auditing
- Breach detection
Quick Start
Minimal working example:
// audit-logger.js
const winston = require("winston");
const { ElasticsearchTransport } = require("winston-elasticsearch");
class AuditLogger {
constructor() {
this.logger = winston.createLogger({
level: "info",
format: winston.format.combine(
winston.format.timestamp(),
winston.format.json(),
),
transports: [
// File transport
new winston.transports.File({
filename: "logs/audit.log",
maxsize: 10485760, // 10MB
maxFiles: 30,
tailable: true,
}),
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- Security, Backend & APIs
- First seen
- Jun 3, 2026
Questions
What does the security-audit-logging skill do?
It implements comprehensive audit logging for security events, user actions and system changes, with structured logging, retention policies and SIEM integration. It suits building audit trails, compliance logging and security monitoring systems.
How do I install the security-audit-logging skill?
Run npx -y skills add aj-geddes/useful-ai-prompts --skill security-audit-logging -y in your project. Once installed, the agent can build audit logging code with a Node.js, Python or Java reference guide.
Which compliance standards does security-audit-logging support?
The skill targets compliance requirements such as SOC 2, HIPAA and PCI-DSS, along with forensic investigations and breach detection. It also covers user activity tracking and system change auditing.
More from aj-geddes/useful-ai-prompts
All 258- Bundle Size Optimization569
- Process Mapping567
- Integration Testing564
- Oauth Implementation560
- Memory Optimization555
- Semantic Versioning555
- Caching Strategy552
- Web Performance Audit550
- Real Time Features549
- Browser Debugging547
- Mobile Offline Support547
- Design System Creation545
- Gcp Cloud Run545
- Causal Inference544
- Code Generation Template539
- Sql Injection Prevention538
- Anomaly Detection534
- Gap Analysis534
- Grpc Service Development533
- Network Debugging533
- Kpi Dashboard Design531
- Payment Gateway Integration531
- Progressive Web App531
- Microservices Architecture530
Similar to Security Audit Logging
More Securityapi-fuzzing-bug-bountysickn33/agentic-awesome-skills570 installsapi fuzzing bug bounty
supabase-audit-realtimeyoanbernabeu/supabase-pentest-skills570 installsTest Supabase Realtime WebSocket channels for unauthorized subscriptions and data exposure.
skill-guarduseai-pro/openclaw-skills-security563 installsRuntime security monitor for active OpenClaw skills. Watches file access, network calls, and shell commands. Flags anomalous behavior and enforces permission bo
Python Security Scansugarforever/01coder-agent-skills555 installsComprehensive security vulnerability scanner for Python projects including Flask, Django, and FastAPI applications. Detects OWASP Top 10 vulnerabilities, inject
clawgod-claude-code-patchreason-machines/trending-skills551 installsclawgod claude code patch
auditzackkorman/skills551 installsaudit