audit-logging

Implement comprehensive audit logging for compliance.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "audit-logging" with this command: npx skills add bagelhole/devops-security-agent-skills/bagelhole-devops-security-agent-skills-audit-logging

Audit Logging

Implement comprehensive audit logging for compliance.

Log Categories

audit_events: authentication: - Login attempts - MFA events - Session management

authorization: - Access grants - Permission changes - Role assignments

data_access: - Read operations - Write operations - Delete operations

administrative: - Configuration changes - User management - System changes

Application Logging

import logging import json

class AuditLogger: def log_event(self, event_type, user, resource, action, result): log_entry = { 'timestamp': datetime.utcnow().isoformat(), 'event_type': event_type, 'user': user, 'resource': resource, 'action': action, 'result': result, 'source_ip': request.remote_addr } logger.info(json.dumps(log_entry))

Centralized Logging

Fluentd configuration

<source> @type tail path /var/log/audit/.log tag audit. </source>

<match audit.**> @type elasticsearch host elasticsearch.example.com index_name audit-logs </match>

Best Practices

  • Structured logging (JSON)

  • Centralized collection

  • Tamper-proof storage

  • Retention policies

  • Alerting on anomalies

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

sops-encryption

No summary provided by upstream source.

Repository SourceNeeds Review
Security

linux-administration

No summary provided by upstream source.

Repository SourceNeeds Review
Security

linux-hardening

No summary provided by upstream source.

Repository SourceNeeds Review