Skip to main content

API LOGS

Overview

API Logs provides real-time monitoring of all API requests made to your store. Track request URLs, methods, response codes, and timestamps to debug issues, monitor performance, and understand API usage patterns. Configure monitoring settings in Configuration and analyze long-term trends in Analytics.

Why Use API Logs?

API Logs help you:

  • Debug issues - Identify failed requests and error patterns (see Debugging Workflows)
  • Monitor activity - Track all API calls in real-time (learn about Real-time Monitoring)
  • Analyze usage - Understand which endpoints are most used (detailed analysis in Analytics)
  • Performance tracking - Monitor response times and success rates (view Performance Monitoring )
  • Security auditing - Review API access patterns (manage access in User Management)

Real-World Example: If users report search issues, check API Logs to see if search requests are failing, which endpoints are being called, and what error codes are returned. Then use Browse to test searches and verify results. Compare actual search behavior with Configuration settings and analyze patterns in Analytics.

Page Controls

Pause Button

API Log Pause Button

Purpose: Pause/Resume real-time log updates

Use Cases and States:

Use CasePurposeStateDescription
Resume to continue monitoringReal-time log updates (see Real-time Monitoring)Active (logging)Logs update in real-time as requests come in
Pause to analyze specific logsWithout new entries interferingPausedLogs freeze at current state, new requests not displayed

Filter Button

Filter Button

Filter Options and Button Details:

Filter OptionOption DescriptionButton Details
AllShow all request types (default)Location: Top right of logs table
SearchOnly search-related API calls Icon:
BuildIndex build and update operations (configure in Configuration)Purpose: Filter logs by type
ErrorsFailed requests onlyShows: 4xx and 5xx status codes

API Logs Table

API Logs Table

Table Columns

ColumnDescriptionExamples & Details
URLFull API endpoint path with store ID and version/api/admin/v1/search/{storeId}
Shows: endpoint, store ID (manage in Store Management), API version (v1)
MethodHTTP request method with color-coded badgesPOST GET PUT DELETE
CodeHTTP response status code with color indication200 400 500
Green: Success, Yellow: Client errors, Red: Server errors
TimestampRelative time when request was made"Just now", "2 minutes ago", "5 minutes ago"
Updates: Real-time when not paused

API Call Details

Opening Details

ActionResult
Click on any API log entry rowModal dialog opens showing complete request information with detailed tabs for headers, request body, and response data

Request Information

The dialog displays detailed information about the selected API call:

API Log Details
FieldDescriptionExample & Details
TimeFull timestamp with millisecond precisionISO 8601 format (UTC timezone)
Shows exact request time
URLComplete API endpoint path/api/admin/v1/search/{storeId}
Shows: Full path, store ID, API version, endpoint type
MethodHTTP request method with colored badgePOST GET PUT DELETE
Response CodeHTTP status code with colored badge
200Success responses

Color coded: 2xx, 4xx, 5xx

IPIP address of the request origin10.42.0.82
Use cases: Identify source, debug issues, security monitoring

Request Details Tabs

The dialog provides three tabs for detailed inspection:

1. Headers Tab

API Log Headers

Purpose: View HTTP request headers

DisplaysCommon HeadersUse Cases

• Line-numbered code view

• Syntax highlighting

  1. Content-Type: application/json
  2. User-Agent: Admin-UI/1.0
  3. Accept: application/json
  4. Host: localhost
  5. Method: POST
  6. X-Forwarded-For: 10.42.0.82

• Verify content type
• Check authentication headers
• Check header-related issues
• Analyze request origin

2. Request Body Tab

Purpose: View the request payload/data sent

Display: JSON formatted with syntax highlighting

Example content:

{
"query": "black women watches",
"filters": {
"brandName": ["coach", "alexandre christie"],
"category": ["Watches-Women"],
"color": ["black"],
"priceRange": {
"min": 100,
"max": 500
}
},
"limit": 20,
"offset": 0,
"sortBy": "relevance",
"facets": ["brandName", "category", "color", "price"]
}

Use cases:

  • Verify search queries
  • Check filter parameters
  • Debug data format issues
  • Analyze request structure and troubleshoot issues

Note: Empty for GET requests (no body)

3. Response Body Tab

Purpose: View the API response data

Display: JSON formatted with syntax highlighting

Example content:

{
"hits": [
{
"id": "watch_001",
"brandName": "coach",
"category": "Watches-Women",
"color": "black",
"price": 299.99,
"title": "Coach Women's Black Leather Watch",
"imageUrl": "https://example.com/watch1.jpg",
"inStock": true
},
],
"totalHits": 42,
"processingTime": 15,
"facets": {
"brandName": {
"coach": 18,
"alexandre christie": 24
},
"color": {
"black": 42
},
"category": {
"Watches-Women": 42
}
},
"pagination": {
"limit": 20,
"offset": 0,
"hasMore": true
}
}

Use cases:

  • Verify response structure against expected format
  • Check returned data
  • Debug empty results
  • Analyze response format and performance metrics

Working with API Logs

Monitoring Real-Time Activity

Step 1: Ensure logs are not pausedStep 2: Watch for patternsStep 3: Use filters to focus

• Check pause button is not active

• New requests appear at top

• High frequency of same endpoint
• Error codes appearing
• Response time issues

• Select "Search" to see only search activity
• Select "Errors" to identify problems
• Select "Build" to monitor indexing

Debugging Issues

Identify Failed RequestsAnalyze Patterns
  1. Click filter → Select "Errors" to filter out only failed requests
  2. Look for non-200 status codes indicating failures
  3. Note the endpoint URL causing problems
  4. Check timestamp for when issue occurred to track patterns

• Same endpoint failing repeatedly across multiple requests?
• Errors at specific times indicating system issues?
• Which operations are affected to determine scope of problem?
• Fix underlying issues in

Common Error Investigation:

400 Bad Request401 Unauthorized404 Not Found500 Server Error

• Check request parameters against
• Verify data format and validation rules

• Check authentication tokens
• Verify API key validity
• Review permissions

• Verify store ID is correct

• Ensure resource exists and is properly configured

• Note exact timestamp
• Check if multiple users affected
• Contact support with details

Performance Monitoring

Track Request VolumeResponse Time Analysis

• Monitor how many requests per minute

• Spot unusual spikes in traffic patterns and analyze their cause

• Most requests should be "Just now"
• Delays of several seconds indicate issues (troubleshoot in Configuration)
• Compare with Stats tab for detailed performance metrics and graphs

Notes

Real-time UpdatesData RetentionPerformance ImpactPrivacy and Security

• Logs stream continuously when not paused
• New requests appear at the top
• Automatic scrolling unless paused

• Logs shown are from current session
• Historical data available in Stats tab
• Export functionality (if available) for archival (check Billing for plan features)

• High traffic stores may have rapid log updates
• Use pause feature to review specific entries
• Filter to reduce noise and focus on relevant logs

• Logs may contain sensitive information
• Restrict access to authorized users only (manage in User Management)

Using Filters Effectively

Troubleshooting Search IssuesMonitoring Index OperationsSecurity Auditing

• Filter by "Search" to isolate search-related requests
• Look for 400/500 codes indicating failures
• Identify failing queries and their patterns

• Filter by "Build" to monitor index operations
• Track index update frequency and timing
• Verify successful completions and catch errors

• Review all request types for comprehensive monitoring
• Look for unusual patterns or suspicious behavior
• Monitor unauthorized attempts and access violations

Pause Strategy

When to PauseWhen to Resume

Investigating a specific error in detail: Click on the failing request to open modal, examine headers tab for authentication issues, review request body for malformed data, analyze response body for error messages, note exact timestamp and IP address, check if error is isolated or part of pattern
• Copying log details for support tickets
• Analyzing request patterns without interruption
• Taking screenshots for documentation purposes

• After investigation is complete and documented
• To continue monitoring real-time activity
• To catch new issues as they occur
• When ready to return to active monitoring

Frequently Asked Questions (FAQs)

How long are logs retained?

Logs shown in the API Logs tab are typically from the current session. For historical analysis, use the Stats tab which provides date-range filtering and performance graphs. Configure retention settings in Configuration.

Why don't I see any logs?

Possible reasons:

What does "Just now" mean exactly?

"Just now" indicates the request occurred within the last minute. Timestamps become more specific (e.g., "2 minutes ago") as time passes.

Can I see request/response bodies?

The basic API Logs view shows URL, method, code, and timestamp. For detailed request/response data, click on any log entry to see Request Details Tabs including headers, request body, and response body. Configure enhanced logging in Configuration.

How do I identify slow requests?

While timestamps show when requests occurred, for detailed response time analysis, use the Stats tab which provides performance metrics and graphs. You can also optimize slow queries in Configuration.

What should I do if I see many errors?

  1. Use filter to isolate "Errors" only
  2. Note the affected endpoints
  3. Check if it's a specific endpoint or widespread
  4. Review error codes for diagnosis (see Error Investigation)
  5. Test fixes using Browse to verify resolution
  6. Adjust settings in Configuration as needed

Best Practices for API Log Monitoring

  1. Regular Monitoring

  2. Error Investigation

  3. Performance Optimization

  4. Data Management