Execution LogsΒΆ
Execution logs capture the detailed output (stdout/stderr) from operations performed on entities. These logs provide real-time visibility into what happens during provisioning, synchronization, and other operations.
π OverviewΒΆ
When you execute operations like provisioning a resource or syncing source code, InfraKitchen captures all output in execution logs. Each execution is timestamped and correlated with an audit log entry through a trace_id.
ποΈ Viewing Execution LogsΒΆ
Access execution logs for an entity:
- Navigate to the entity
- Click the Activity button
- Select the Logs tab
- Choose an execution from the dropdown to view its logs
The logs interface shows:
- Execution dropdown β Select from recent executions (displays timestamp and action)
- Revision button β View the entity configuration at the time of execution
- Log viewer β Real-time scrollable log output with ANSI color support
π Log StructureΒΆ
Each log entry contains:
| Field | Description |
|---|---|
| Entity ID | The entity that generated the log |
| Entity Type | The type of entity (resource, source_code, etc.) |
| Revision | The configuration revision used during execution |
| Level | Log severity (info, warning, error, header) |
| Data | The actual log message or output |
| Created At | When the log entry was created |
| Execution Start | Timestamp identifying the execution session |
| Trace ID | Links the log to its originating audit log entry |
π Log RetentionΒΆ
Logs have different retention policies:
- Standard logs β Retained indefinitely for historical reference
- Dry run logs β Automatically expire after 5 days to save storage
Viewing Historical Executions
Use the execution dropdown to navigate through previous operations. Each execution shows the timestamp and action (e.g., "sync", "execute") to help identify the operation you're looking for.