{% extends 'base.html' %} {% load static %} {% block title %}API Logs - {{ block.super }}{% endblock %} {% block css %} {% endblock %} {% block content %}
API Request Monitoring

Real-time monitoring of API requests, responses, and system integration logs

1,247
Total Requests
23
Errors
Request Logs
Live
SUCCESS GET /api/patients/12345 200 145ms
2024-01-20 14:32:15
Patient data retrieved successfully for ID: 12345
Request ID: req_1642684335_abc123
User Agent: Hospital-Management-System/1.0
IP Address: 192.168.1.100
Response Size: 2.3 KB
Headers: Content-Type: application/json, Authorization: Bearer ***
ERROR POST /api/appointments 400 892ms
2024-01-20 14:31:42
Validation error: Missing required field 'patient_id'
Error Code: VALIDATION_ERROR
Request Body: {"appointment_date": "2024-01-25", "doctor_id": 123}
Stack Trace: ValidationError at line 45 in appointments/views.py
WARNING GET /api/lab-results 200 3.2s
2024-01-20 14:30:18
Slow query detected: Lab results query took 3.2 seconds
Query: SELECT * FROM lab_results WHERE patient_id = 12345
Records Returned: 1,247
Suggestion: Add pagination or date range filter
INFO PUT /api/medications/789 200 234ms
2024-01-20 14:29:55
Medication record updated successfully
Updated Fields: dosage, frequency, end_date
Updated By: Dr. Smith (user_id: 456)
DEBUG GET /api/system/health 200 12ms
2024-01-20 14:29:30
System health check completed - all services operational
Database: Connected (5ms)
Cache: Connected (2ms)
External APIs: All responding
Showing 1-10 of 1,247 entries
{% endblock %} {% block js %} {% endblock %}