Skip to main content

Audit Logs Overview

AstroPulse's enterprise-grade audit logging system provides comprehensive visibility into every action taken within your organization. Track who did what, when, and from where—essential for security, compliance, and operational insights.

Enterprise Feature

Audit Logs are available exclusively for Enterprise plan organizations. Upgrade your plan to access audit capabilities.

What You Can Do

  • Track All Operations: Monitor cluster, application, organization, and user operations
  • User Attribution: Know exactly who performed each action with full user profiles
  • Security Forensics: IP address and user agent tracking for incident investigation
  • Compliance Ready: SOC2, GDPR, and regulatory compliance support
  • Export & Analyze: Export audit data in CSV or JSON format
  • Real-time Stats: Get insights into activity patterns across your organization

Audited Operations

Event Types

Event TypeDescription
CLUSTERKubernetes cluster operations
APPLICATIONApplication deployment operations
APP_PROFILEApplication profile management
ORGANIZATIONOrganization settings and membership
USERUser account operations
API_KEYAPI key lifecycle management
PROVIDERCloud provider integrations (GitHub, etc.)
NOTIFICATIONNotification configuration changes
AUDITAudit log access (self-auditing)

Actions

ActionDescription
CREATEResource creation
UPDATEResource modification
DELETEResource deletion
UPGRADEKubernetes version upgrade (irreversible)
REVOKEAPI key revocation
RESYNCApplication resync operation
READAccess to sensitive data (audit logs)

Resource Operations

ResourceActions Tracked
ClustersCREATE, DELETE, UPDATE, UPGRADE
ApplicationsCREATE, DELETE, RESYNC
App ProfilesCREATE, DELETE
OrganizationsCREATE, UPDATE
UsersCREATE, UPDATE
API KeysCREATE, DELETE, REVOKE
ProvidersCREATE, DELETE
NotificationsCREATE, UPDATE, DELETE

Captured Metadata

Every audit event includes:

  • Timestamp: When the action occurred (ISO 8601 format)
  • User Profile: Name and email of the actor (masked for GDPR compliance)
  • User Roles: Roles assigned to the user at time of action
  • IP Address: Source IP for security tracking
  • User Agent: Browser/client information
  • Request ID: For correlation with system logs
  • Success/Failure: Outcome of the operation
  • Resource Details: What was affected and additional context

Quick Start

Using the Console

  1. Navigate to SettingsAudit Logs in the AstroPulse Console
  2. Select your organization from the dropdown at the top
  3. Use the available filters to narrow down events:
    • Action: Filter by operation type (CREATE, DELETE, UPDATE, etc.)
    • Event Type: Filter by resource type (CLUSTER, APPLICATION, etc.)
    • Date Range: Set start and end dates to view specific time periods
  4. View the Stats cards for a quick summary of total events and breakdown by action
  5. Browse the events table with pagination controls
  6. Click Export CSV to download audit data for external analysis

Using the CLI

# List recent audit events
astroctl audit list

# List audit events with pagination
astroctl audit list --page 2 --page-size 25

# Filter by event type
astroctl audit list --event-type CLUSTER

# Filter by action
astroctl audit list --action CREATE

# Filter by user (Admin/Owner only for other users)
astroctl audit list --user-id 660d8b8d09e3ce662ee63de6

# Filter by date range
astroctl audit list --start-date 2024-01-15 --end-date 2024-01-16

# Get specific audit event details
astroctl audit get audit_20240115143045_660d8b8d_API_KEY

# Export audit events as JSON
astroctl audit export

# Export audit events as CSV
astroctl audit export --format csv

# Export to file
astroctl audit export --format csv --output audit-report.csv

# Get audit statistics for the last 30 days
astroctl audit stats

# Get audit statistics for the last 7 days
astroctl audit stats --period 7d

Access Control

Audit logs follow strict role-based access control:

RoleList EventsView DetailsExportStats
Org Owner✅ All events
Org Admin✅ All events
Org EditorOwn events onlyOwn events onlyOwn events only
Org ViewerOwn events onlyOwn events onlyOwn events only
note

Organization owners and admins can access all audit logs. Regular members can only view their own activity. Statistics are restricted to admins and owners only.

Event Structure

Each audit event contains the following information:

{
"timestamp": "2024-01-15T10:30:45Z",
"request_id": "abc123def456",
"event_type": "CLUSTER",
"user_id": "660d8b8d09e3ce662ee63de6",
"user_profile": {
"name": "J*** D***",
"email": "j***@company.com",
"roles": ["developer", "admin"]
},
"org_id": "org_12345",
"action": "DELETE",
"resource": "CLUSTER",
"resource_id": "prod-cluster-1",
"source": "api",
"success": true,
"status_code": 200,
"ip_address": "192.168.1.100",
"user_agent": "Mozilla/5.0...",
"details": {}
}

PII Protection

User names and emails are automatically masked for GDPR/PII compliance:

  • Email: john.doe@example.comj***@example.com
  • Name: John DoeJ*** D***

The user_id field is the authoritative identifier for user lookup when full details are needed.

Storage & Retention

  • Immutable: Audit logs cannot be modified or deleted
  • Encrypted: All data encrypted at rest and in transit
  • Partitioned: Events organized by date for efficient querying
  • Regional: Data stored in your organization's designated region for compliance

Compliance Support

SOC2

  • ✅ Complete audit trail of all resource operations
  • ✅ User identification and attribution
  • ✅ Immutable log storage
  • ✅ Access control enforcement

GDPR

  • ✅ Data minimization (only essential fields captured)
  • ✅ PII masking (names and emails automatically masked)
  • ✅ Right to access (export your audit data)
  • ✅ Encryption at rest and in transit
  • ✅ Data residency options

Query Options

Filtering Parameters

ParameterDescriptionExample
event-typeFilter by resource typeCLUSTER, APPLICATION, API_KEY
actionFilter by actionCREATE, DELETE, UPDATE, REVOKE
user-idFilter by user660d8b8d09e3ce662ee63de6
start-dateStart of date range2024-01-01
end-dateEnd of date range2024-01-31
pagePage number1
page-sizeItems per page (max 100)50

Export Formats

  • JSON: Full structured data for programmatic processing
  • CSV: Spreadsheet-compatible for reporting and analysis

Statistics Periods

  • 7d: Last 7 days
  • 30d: Last 30 days (default)
  • 90d: Last 90 days

Best Practices

  1. Regular Reviews: Schedule periodic audit log reviews for security compliance
  2. Export for Backup: Regularly export audit data for long-term retention
  3. Monitor Sensitive Operations: Pay attention to DELETE, UPGRADE, and API_KEY operations
  4. Correlate with Incidents: Use request IDs and timestamps to correlate with system logs
  5. Role-Based Access: Limit audit access to authorized administrators only

Self-Auditing

For complete compliance, accessing audit logs generates its own audit events. This means:

  • Every query to the audit API is logged with event_type: AUDIT
  • Export operations are tracked
  • Statistics requests are recorded

This ensures full accountability for audit log access itself.

Need Help?