Observability
AWS
Debugging

How to Find the Logs for a Failed Request on Forte

Find a failed customer request, follow its request ID into app logs, and check the fix. Learn where CloudWatch and broader tracing tools fit.

Forte TeamPublished March 8, 2026Updated November 15, 20265 min read

An error near the time of a customer report is a lead, not proof that you have found their failure. A busy API may have served many requests in those seconds. To explain why one search failed, you need to connect that particular request with the application messages written while handling it.

Request IDs provide that connection. Forte's hosted Service workflow brings a request's status and timing together with available app output, while your application supplies the useful messages and includes the ID. That combination makes the evidence easier to follow when calls overlap.

Find the failed request before interpreting the error

Start with what support knows: when the customer clicked Search and which API route the browser called. In the Service's Requests tab, narrow by time and route, then open the suspected failure. Confirm the method, path, status, and timing before attributing a nearby log line to it.

A 500 means the server failed to complete the call. The related app output can distinguish a bad query from missing configuration or a failed dependency. Those require different fixes even though the customer sees the same unsuccessful search.

Forte request detail for a failed GET /api/search call, showing a 500 status, the request ID, the latency breakdown, and correlated app error log lines with a stack trace.
A failed request in Forte: the 500 status, request ID, and latencies alongside the app log lines correlated to that request.
Try the request view

The data below is sample data. Choose 5xx errors, then open a failed request to see its status, timing, and the log lines from that request.

If the matching output names a database error, the next question is which query and code produced it. The investigation now has a specific operation to reproduce instead of a broad search through every error the app logged that day.

Give concurrent requests separate evidence

Two searches can write into the same time window. A request ID lets the logger mark which messages belong to which call. Forte supplies it to a Service in the X-Request-Id header. Read the value as the request begins and include it in messages about that operation.

This small Express example shows the pattern:

js
app.use((req, _res, next) => {
  req.requestId = req.headers["x-request-id"];
  next();
});
 
app.post("/checkout", async (req, res) => {
  console.log(`INFO requestId=${req.requestId} checkout started`);
  // Run the app operation.
  res.sendStatus(204);
});

Connect the ID to your application's logger so handlers can use it consistently. Store it with the request: one global variable would be overwritten by overlapping calls and could attach the wrong identifier to a message.

Forte recognizes requestId, request_id, request-id, and x-request-id in log output. The value must contain only letters, numbers, and hyphens. The request-ID correlation guide gives Node.js, Python, and Java examples.

Timestamp matching can help before the app adopts IDs, but it is less precise under load. Add the identifier before relying on correlation during a busy incident, and verify that the resulting messages appear with the intended request.

Useful context does not require full customer payloads

A route, request ID, error type, and safe internal reference can often identify the failing code without recording every search term or customer record. Decide what to log before an incident. Passwords, tokens, payment details, and sensitive payloads should not be the price of useful diagnostics.

Body capture needs a separate decision from ordinary app logging. Forte enables request and response body capture by default in Sandbox projects and disables it by default in live projects. It can be changed per Service, but review the data that route accepts before enabling it. A synthetic test body and a live customer's content have different disclosure consequences.

These request diagnostics apply to traffic through the Forte Service gateway. Websites, including server-rendered Websites, follow another path and do not receive these Service request logs. Choose where request-handling code runs according to the behavior you need.

Correlation has to follow a downstream call

If the search API calls a second service, the first may record only that the call failed. The useful exception could be in the receiving service. Pass a correlation value through your own calls and have the receiving app log it, checking how every proxy and service treats the header along the way.

Long-running work also needs a stable job or operation ID. The request that begins a job and its later retry attempts can have different request IDs. Connecting them through the job's identity lets you follow the operation without treating separate HTTP attempts as one call.

Those identifiers help locate evidence. They do not replace distributed tracing when you need to measure timing across a large chain of services. Keep that requirement explicit if the application has outgrown request-to-log correlation alone.

The same evidence can be followed in CloudWatch

For app components on AWS, select the relevant log groups and a narrow time window. A broad error query can locate candidates:

fields @timestamp, @message, @log
| filter @message like /ERROR|WARN/
| sort @timestamp desc
| limit 100

Some of those errors may belong to other calls. Once a request ID is known, search for its value across the selected groups:

fields @timestamp, @message, @log
| filter @message like /abc123-def456/
| sort @timestamp asc
| limit 100

CloudWatch Logs Insights can query multiple selected log groups. Your team still needs to know which groups participate and ensure the applications emit useful identifiers. The investigation succeeds when the request and its evidence can be connected, whether that connection is maintained across AWS tools or presented together in Forte's Service view.

After a correction, repeat the original search with safe input and inspect the new request. Confirm the expected search results, since a completed deployment proves only that startup checks passed. Then improve whichever missing context slowed the investigation, such as an omitted ID or an error that failed to name its operation, without introducing sensitive values into the logs.

The Service monitoring guide covers the setup. Forte Compute is a place to try the request-to-log workflow with an app. The test that matters is whether you can take one failed call and explain what happened to it.

Follow a failed test request into your app logs

Deploy a test Service and put request IDs in its logs. Cause a safe test error, then find the request and the messages that explain it.

Try request debugging
From Vibe-Coded Prototype to Production with Forte
AI Development
Security
Production

From Vibe-Coded Prototype to Production with Forte

Take an AI-built app beyond a working demo. Test customer access, saved data, payments, background jobs, and how to find failures on Forte.

6 min read
From git push to Production: What Forte Handles for You
Deployment
Operations

From git push to Production: What Forte Handles for You

Follow a change from git push through its build, startup, health check, and customer test. Find the right evidence when a release fails.

5 min read