List and filter events for muster resources in both Kubernetes and filesystem modes.
muster events [OPTIONS]
The events command provides access to event history for all muster components including MCPServers, Workflows, and Service instances. Events are automatically generated during resource lifecycle operations and can be queried with various filters.
Events provide visibility into:
- Resource creation, updates, and deletions
- Service state transitions (starting, running, stopped, failed)
- Tool availability changes
- Workflow execution progress and results
- Health check status and recovery operations
Prerequisites: The aggregator server must be running (muster serve) before using this command.
--resource-type(string): Filter by resource type- Options:
mcpserver,workflow,service
- Options:
--resource-name(string): Filter by specific resource name--namespace(string): Filter by namespace (default: all namespaces)
--type(string): Filter by event type- Options:
Normal,Warning
- Options:
--since(string): Show events after this time- Formats:
1h,30m,2024-01-15T10:00:00Z,2024-01-15,2024-01-15 10:00:00
- Formats:
--until(string): Show events before this time- Same formats as
--since
- Same formats as
--limit(int): Limit number of events returned- Default:
50
- Default:
--output,-o(string): Output format (table|json|yaml)- Default:
table
- Default:
--quiet,-q: Suppress non-essential output- Default:
false
- Default:
--config-path(string): Custom configuration directory path- Default:
~/.config/muster
- Default:
# List all recent events
muster events
# Example output:
# TIMESTAMP NAMESPACE RESOURCE NAME TYPE REASON MESSAGE
# 2024-01-15T14:30:15Z default MCPServer github-server Normal MCPServerStarted MCPServer service started successfully
# 2024-01-15T14:30:10Z default MCPServer github-server Normal MCPServerStarting MCPServer service beginning startup
# 2024-01-15T14:29:45Z default MCPServer github-server Normal MCPServerCreated MCPServer successfully created# Filter by resource type
muster events --resource-type mcpserver
muster events --resource-type workflow
muster events --resource-type service
# Filter by specific resource
muster events --resource-type mcpserver --resource-name prometheus
muster events --resource-type workflow --resource-name deploy-app
# Filter by namespace
muster events --namespace default
muster events --namespace muster-system# Show events from the last hour
muster events --since 1h
# Show events from the last 30 minutes
muster events --since 30m
# Show events between specific times
muster events --since 2024-01-15T10:00:00Z --until 2024-01-15T18:00:00Z
# Show events from a specific date
muster events --since 2024-01-15
# Show events with relative time format
muster events --since "2 hours ago"# Show only warning events
muster events --type Warning
# Show only normal events
muster events --type Normal
# Combine with other filters
muster events --resource-type mcpserver --type Warning --since 1h# JSON format for programmatic processing
muster events --output json --limit 10
# YAML format for detailed inspection
muster events --output yaml --resource-name my-service
# Table format with specific filters
muster events --resource-type workflow --limit 20# Recent warning events for MCPServers
muster events --resource-type mcpserver --type Warning --since 2h
# All events for a specific service in the last day
muster events --resource-type service --resource-name my-app --since 24h
# Workflow execution events with detailed output
muster events --resource-type workflow --output yaml --since 1h- Lifecycle: Created, Updated, Deleted, Starting, Started, Stopped, Failed
- Tools: ToolsDiscovered, ToolsUnavailable, Reconnected
- Health: HealthCheckFailed, RecoveryStarted, RecoverySucceeded, RecoveryFailed
- Configuration: Created, Updated, Deleted, ValidationFailed, ValidationSucceeded
- Execution: ExecutionStarted, ExecutionCompleted, ExecutionFailed, ExecutionTracked
- Steps: StepStarted, StepCompleted, StepFailed, StepSkipped, StepConditionEvaluated
- Tools: Available, Unavailable, ToolsDiscovered, ToolsMissing, ToolRegistered, ToolUnregistered
- Lifecycle: Created, Starting, Started, Stopping, Stopped, Restarting, Restarted, Deleted, Failed
- Health: Healthy, Unhealthy, HealthCheckFailed, HealthCheckRecovered, StateChanged
- Tools: ToolExecutionStarted, ToolExecutionCompleted, ToolExecutionFailed
Events that indicate successful operations or expected state changes:
- Resource creation, updates, deletions
- Successful service starts and stops
- Tool discovery and availability
- Workflow execution completion
- Health check recovery
Events that may require attention or indicate problems:
- Service failures and crashes
- Tool unavailability
- Validation failures
- Health check failures
- Workflow execution failures
When running with Kubernetes backend:
- Events are stored as Kubernetes Event objects
- Can be viewed with
kubectl get events - Events include standard Kubernetes metadata (count, firstTime, lastTime)
- Events respect Kubernetes TTL and cleanup policies
When running with filesystem backend:
- Events are logged to console and
events.logfile - Events are stored as JSON entries for machine readability
- No automatic cleanup (events persist until manually removed)
- Useful for development and standalone deployments
# Check if aggregator is running
muster list mcpserver
# Verify event generation by performing an action
muster create service test-service
muster events --resource-type service --resource-name test-service# Use explicit timezone for UTC times
muster events --since 2024-01-15T10:00:00Z
# Use relative time for recent events
muster events --since 1h30m# Use limit to reduce output
muster events --limit 10
# Use time filters to narrow results
muster events --since 1h --until 30m
# Filter by specific resource
muster events --resource-type mcpserver --resource-name specific-servermuster list- List multiple resourcesmuster get- Get detailed resource informationmuster serve- Start the aggregator server (required for events)
- Event Reference Guide - Complete event types and troubleshooting
- Configuration Reference - Server configuration options