Skip to main content
Access comprehensive execution logs and debugging information for your serverless endpoints. Monitor application behavior, troubleshoot issues, and gain insights into execution patterns with structured logging and real-time log streaming.

Path Parameters

  • endpointId: The unique identifier of the endpoint to retrieve logs for

Query Parameters

  • startTime: Start time for log retrieval (ISO 8601 format, e.g., 2024-01-15T10:30:00Z)
  • endTime: End time for log retrieval (ISO 8601 format, defaults to current time)
  • level: Log level filter (debug, info, warn, error, fatal) - defaults to info
  • limit: Maximum number of log entries to return (1-10000) - defaults to 1000
  • offset: Number of log entries to skip for pagination - defaults to 0
  • jobId: Filter logs for a specific job execution
  • search: Search term to filter log messages (supports regex)
  • format: Response format (json, text, csv) - defaults to json
  • stream: Enable real-time log streaming (true, false) - defaults to false

Example Usage

Basic Log Retrieval

Filtered Logs with Time Range

Job-Specific Logs

Search Logs with Pattern

Real-time Log Streaming

Export Logs in CSV Format

Response

JSON Format Response

Error Logs with Stack Traces

Performance Logs

Text Format Response

Real-time Streaming Response

Log Levels

Level Hierarchy

  • debug: Detailed diagnostic information for development and troubleshooting
  • info: General informational messages about normal operation
  • warn: Warning messages for potentially problematic situations
  • error: Error messages for failures that don’t stop execution
  • fatal: Critical errors that cause execution to stop

Log Sources

  • api_handler: API request handling and routing
  • model_loader: Model loading and initialization
  • model_inference: Model execution and inference
  • resource_monitor: System resource monitoring
  • storage_uploader: File upload and storage operations
  • cache_manager: Caching system operations
  • auto_scaler: Auto-scaling events and decisions

Advanced Filtering

Search Patterns

Complex Filtering

Log Aggregation

Log Aggregation Endpoint

Aggregation Response

Error Handling

400 Bad Request

403 Forbidden

413 Payload Too Large

429 Rate Limited

SDK Examples

Python SDK

JavaScript SDK

Use Cases

Production Debugging

  • Error Investigation: Quickly identify and analyze production errors
  • Performance Troubleshooting: Diagnose latency and throughput issues
  • Resource Problems: Monitor memory leaks and resource exhaustion
  • Integration Issues: Debug API calls and external service failures

Development and Testing

  • Development Debugging: Monitor application behavior during development
  • Load Testing: Analyze system behavior under load
  • Performance Optimization: Identify optimization opportunities
  • Quality Assurance: Verify correct application behavior

Operations and Monitoring

  • Real-time Monitoring: Monitor system health in real-time
  • Alerting Systems: Set up automated alerts for critical issues
  • Compliance Auditing: Maintain audit trails for compliance requirements
  • Capacity Planning: Analyze usage patterns for capacity planning

Business Intelligence

  • Usage Analytics: Understand user behavior and usage patterns
  • Performance Metrics: Track application performance over time
  • Cost Analysis: Analyze operational costs and optimization opportunities
  • Trend Analysis: Identify patterns and trends in application usage

Best Practices

Log Management

  • Structured Logging: Use structured log formats for easier analysis
  • Log Levels: Use appropriate log levels to control verbosity
  • Retention Policies: Define retention policies based on compliance requirements
  • Storage Optimization: Use appropriate storage tiers for different log types

Performance Considerations

  • Filtering: Use specific filters to reduce data transfer and processing
  • Pagination: Use pagination for large log sets to avoid timeouts
  • Streaming: Use streaming for real-time monitoring instead of polling
  • Caching: Cache log analysis results when appropriate

Security and Compliance

  • Access Control: Implement proper access controls for sensitive logs
  • Data Privacy: Ensure logs don’t contain sensitive personal information
  • Audit Trails: Maintain audit trails for log access and modifications
  • Encryption: Use encryption for sensitive log data

Monitoring and Alerting

  • Proactive Monitoring: Set up proactive monitoring for critical issues
  • Alert Thresholds: Set appropriate thresholds to avoid alert fatigue
  • Escalation Procedures: Define clear escalation procedures for different alert types
  • Integration: Integrate with existing monitoring and alerting systems
Logs are retained for 30 days by default. For longer retention, consider exporting logs to your own storage system or upgrading to a plan with extended retention.
Log streaming consumes resources and should be used judiciously. Close streaming connections when not needed to avoid unnecessary resource usage.
Use structured search patterns and metadata filtering to quickly find relevant logs. Consider setting up automated log analysis pipelines for common debugging scenarios.