Troubleshooting Guide
Troubleshooting
Common Issues and Solutions
-
Service Failed to Start
-
Authentication Issues
Viewing Logs
Access and analyze logs through InspectBoard and Docker:
1. InspectBoard - API Gateway Audit Logs
Administrators can review recent API Gateway activity in InspectBoard, the LLMInspect observability dashboard.
-
Open the Audit Logs:
- Log in to InspectBoard at
https://your-domain:5119using your LLMInspect credentials - Open Chat Analytics or API Analytics from the left navigation
- Scroll to the Detail section and find the API Gateway audit logs panel
- Log in to InspectBoard at
-
Adjust Time Range: If you don't see the entries you expect:
- Open the time range selector in the top bar
- Select a longer preset range (e.g., Last 24 hours or Last 7 days)
- The panel only shows log entries from the selected time range
-
Filter Logs:
- Type the text you are looking for, such as an error message, in the filter lines field
- Press Enter to show only the log lines that contain that text
- To clear the filter, delete the text and press Enter again
-
Additional Features:
- Click on a log line to expand it and see the full entry
- The dashboard refreshes automatically every 30 seconds; click the refresh button in the top bar to update immediately
For more details, see Viewing Audit Logs in the Observability Guide. To view logs from individual LLMInspect services, use Docker Container Logs.
2. Local Deployment Logs
- Accessing Logs:
- Navigate to the
logsfolder in your LLMInspect installation directory: - This directory contains raw log files organized by service component and date, allowing for manual inspection when necessary.
- Navigate to the
- Log Format and Content: Understand the format of the logs (e.g., JSON, plain text) and the information they contain, such as timestamps, log level, and service identifiers.
3. Docker Container Logs
- Viewing Real-Time Container Logs:
- Monitoring Logs with Timestamps:
- Inspecting Recent Log Entries:
- Tips for Effective Log Management:
- Use
docker compose logsfor services managed via Docker Compose: - Combine logs from all containers in a Docker Compose setup:
- Filter logs by time or keywords using
grepor other command-line tools for more specific log analysis.
- Use
Additional Tips
- Setting Up Log Rotation: Ensure that log rotation is configured to manage disk space effectively. Docker and system-level log rotation settings should be verified to prevent service disruption due to filled disk spaces.