A customer reports that search stopped working in your project management app a few minutes ago. You find several API errors around that time, but the app was serving other customers too. You need a way to tell which error came from their search.
Start by finding the record for the failed search request. If the hosting layer and the app logs share a request ID, you can use it to find the messages the app wrote while handling that call.
Forte provides that path for hosted Services. You can open a request's status and timing, then inspect the matching app output. Your app still needs to write useful messages and include the request ID so the match is accurate when requests overlap.
Start with one customer report
In this example, the support team knows when the customer clicked Search and which API route the browser called. That gives the team enough to narrow the list of requests before they know what caused the error.
Open the Service's Requests tab and narrow the list to that time and route. Look for the failed status, then open the request. Check the method, path, status, and timing before deciding what to look into next.
If the request returned 500, the server failed to complete it. Read the app messages from that call to see whether the failure came from a bad query, a missing setting, or a call to another service.

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.
For our search app, suppose the matching log contains a database error. The team can now inspect the query and the code that ran it. It has a smaller, testable question than “why is search broken?”
Add the request ID to your app logs
When two searches run at the same time, their log messages can land in the same time window. A request ID gives the app a way to mark which messages belong to each search.
Forte sends that value to a Service in the X-Request-Id header. Read it at the start of the request and include it when logging the work done for that call. Here is a small Express example:
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 request ID to your app's logger so each handler can include it in its messages. Keep the value with the request because overlapping calls would overwrite one shared global variable.
Forte recognizes requestId, request_id, request-id, and x-request-id in log output. The value must contain only letters, numbers, and hyphens. The monitoring guide has examples for Node.js, Python, and Java.
Forte can also match logs by timestamp when the app has not adopted request IDs. That can help you get started, but it is less precise under load. Add the ID before depending on that match during a busy incident.
Keep useful evidence without copying sensitive data
The team needs enough context to look into search. It usually does not need every search term, session token, or customer record in the logs.
Decide what to record before an incident. A route, request ID, error type, and safe internal reference may be enough to find the failing code. Keep passwords, payment details, and other sensitive payloads out of app messages.
Request and response body capture needs a separate decision. Forte enables it by default in Sandbox projects and disables it by default in live projects. Change it per Service if needed, and check what your app accepts before enabling it. An internal test payload may be safe to capture while a real customer's payload is not.
Service request diagnostics apply to traffic through the Forte gateway. Websites, including server-rendered Websites, use a different path and do not get these request logs. Put the request-handling code in the right place for the behavior you need.
Follow calls to other services carefully
Suppose the search API calls a second service to build the results. The first service's logs may show that the call failed, while the second service holds the useful error message.
Pass the correlation value through your own service calls and make sure the receiving app logs it. That gives you a way to connect both sides of the operation. Verify how each service and proxy handles the header rather than assuming it survives every hop.
A long-running job needs an additional job or operation ID. One HTTP request may start the work, but later attempts can have different request IDs. Keep those attempts connected through a stable identifier for the job itself.
These IDs help you find evidence. They do not replace a full distributed tracing setup when you need to measure time across a large chain of services.
Use the same approach in CloudWatch
If part of your app runs on AWS, first choose the relevant log groups and a narrow time window. A broad error query can help locate a failure:
fields @timestamp, @message, @log
| filter @message like /ERROR|WARN/
| sort @timestamp desc
| limit 100Treat errors in that window as leads because some may belong to other requests. Once you find the request ID, search for that value across the selected groups:
fields @timestamp, @message, @log
| filter @message like /abc123-def456/
| sort @timestamp asc
| limit 100CloudWatch Logs Insights can query multiple selected log groups. Your team still needs to make the apps emit useful identifiers and know which groups participate in the request.
The same habit works on either platform: narrow the request first, then follow its evidence. Forte brings the Service request and matching log view together so a small team has less diagnostic setup to maintain.
Check the fix against the original failure
After changing the code or settings, repeat the failed search in a safe test setup and inspect the new request record. Check that the app returns the results the customer should see, since a successful deployment only tells you that the app started.
Then ask what made the investigation slow. Perhaps one service omitted the request ID. Perhaps the log named an error without finding the failed operation. Add the missing context while the incident is fresh, and keep sensitive data out of that improvement.
For the full setup, see the Service monitoring guide. If you want to try the request-to-log workflow with an app, start with Forte Compute.