OpenTelemetry, Grafana Loki and CloudWatch for Support Teams: Finding the Customer’s Error in Your Logs
Support sees the symptom; your logs hold the cause. Let a ticket investigation search Grafana Loki and CloudWatch Logs read-only, or receive only error logs and traces over OpenTelemetry, masked and short-lived, without sending customer details anywhere. With an illustrative export error, start to finish.

When a customer reports "E-4012 when exporting", the fastest question is: does it show up in our logs, since when, and for how many people? Support teams that can answer that themselves hand engineering a much better ticket.
We covered Sentry, Datadog and New Relic before. Many teams run Grafana, AWS or an OpenTelemetry pipeline instead.
Here's how a log question goes without that at a company that sells a fleet-tracking platform to delivery companies:
- 09:00: a customer reports "E-4012 when exporting last week's routes".
- 09:10: support asks engineering whether E-4012 is "a known thing".
- 11:30: an engineer, between other tasks, searches Loki and finds 300 matching lines over three days, all from the
export-workerservice. - 11:45: he replies "yes, it's happening, looking into it". Support tells the customer.
- Next day: two more customers report the same error. Support asks engineering again whether it's the same thing.
The logs had the answer at 09:01. What support lacked was a safe, read-only way to ask them.
First, the basics
- Logs are lines your services write as they run, including errors.
- Grafana Loki stores logs; Grafana is the dashboard many teams use to search them, with a query language called LogQL.
- CloudWatch Logs is AWS's log service; Logs Insights searches it.
- OpenTelemetry is an open standard for sending logs, traces and metrics; a collector forwards them using exporters.
- A trace follows one request through your services; a span is one step in it, which can have an error status.
- A read-only key can search but not change anything.
- Masking removes personal or secret data before anything is stored.
Why does this matter? "Is this happening in production, and to how many people?" is the first question on almost every technical ticket. If support can answer it from the ticket, engineering gets fewer interruptions and better hand-offs, and customers get a faster, more specific reply.
The problem, in plain terms
- Logs are engineering's tool, so every check is an interruption.
- Access is all-or-nothing: either full access or none.
- Customer details could leak into log searches.
- Push-based telemetry sends everything, including what support doesn't need.
- Broken connections look like "no results".
Grafana Loki: search through Grafana
If your logs are in Loki, the simplest route is Grafana's own data-source proxy. A Grafana service-account token with the Viewer role can run a LogQL query such as {app="api"} |= "E-4012" for the last seven days. Group the lines by service and first line, count them and keep the first and last time seen.
CloudWatch Logs: Logs Insights
For AWS, CloudWatch Logs Insights can search chosen log groups for an exact string. Use an IAM user limited to logs:StartQuery, logs:GetQueryResults and logs:DescribeLogGroups, and sign the requests with AWS Signature Version 4. The query starts, then the results are collected a second or two later.
OpenTelemetry: push only the errors
OpenTelemetry works the other way round: your collector sends data out. Point an otlphttp exporter at the support tool with JSON encoding and a bearer token, on the logs and traces pipelines. The receiving side should keep only what support needs:
- ERROR log records (severity 17 and above) and spans with an error status, with the exception type and message.
- Masked: email addresses, keys, tokens and card numbers removed before storing.
- Short-lived: deleted after a couple of weeks.
The rule for all three
Only the error code or a short error message leaves the support tool, never the customer's name, email or the rest of the ticket. And a connection isn't working until its test succeeds; until then it should show the last error, not pretend.
In TR-AI
Connect Grafana, CloudWatch or OpenTelemetry in Escalation → Hand-offs → Monitoring tools (/dashboard/escalation). In each ticket's investigation, "In your monitoring tools" lists matching log lines and error spans with counts and first / last seen. No match is shown too: it suggests the problem is on the customer's side or not logged.
A worked example, start to finish
Here's the fleet-tracking export error with Grafana connected. The names, counts and times are illustrative.
Set-up, done once. Ravi, a platform engineer, creates a Grafana service account with the Viewer role and gives its token to a TR-AI admin, who connects Grafana in Escalation → Hand-offs → Monitoring tools. The test succeeds. For the AWS-hosted routing service, he creates an IAM user limited to the three Logs Insights permissions and chooses two log groups; that connection tests successfully too.
09:00. The ticket. "E-4012 when exporting last week's routes."
09:01. The investigation. TR-AI searches with only the error code, E-4012, never the customer's name or email. "In your monitoring tools" shows:
- Grafana Loki: 312 lines in
export-worker, first seen Monday 14:05, last seen today 08:58. First line:E-4012 export timeout: route batch exceeded 120s. - CloudWatch Logs: no match in the routing service's log groups.
09:05. The reply. Neha, the support agent, writes: "We can see this error in our export service since Monday afternoon. It affects exports covering long date ranges. While we fix it, exporting a few days at a time works. We'll update you when it's fixed."
09:10. The hand-off. She creates the engineering issue with the evidence: service, first line, count, first and last seen, and that the routing service shows nothing. Ravi starts with export-worker, not a search.
Next day. Two more customers report E-4012. Their investigations show the same lines; agents link them to the known issue and send the workaround in minutes.
What changed: the first reply went from two and a half hours to five minutes, engineering received a ticket it didn't need to research, and the customer's details never left TR-AI.
Five more real-world scenarios
1. OpenTelemetry instead of Grafana
Situation. Your services send telemetry through an OpenTelemetry collector.
How TR handles it. Add an otlphttp exporter with JSON encoding and a bearer token on the logs and traces pipelines. TR-AI keeps only error records and error spans, masked, for 14 days.
2. No match anywhere
Situation. The error code doesn't appear in any log.
How TR handles it. "No match" is shown, suggesting the problem is on the customer's side or not logged.
3. A key that expired
Situation. The Grafana token was rotated.
How TR handles it. The connection shows the last error instead of pretending to work.
4. A customer email in a log line
Situation. An OpenTelemetry error record includes an email address.
How TR handles it. It's masked before storing.
5. Metrics
Situation. Someone wants to send CPU metrics over OpenTelemetry.
How TR handles it. Only error logs and traces are accepted, over OTLP/HTTP with JSON encoding.
Before and after
Before. "Is this a known thing?" in the engineering channel, a two-hour wait, the same question again the next day.
After. Read-only searches from the ticket, counts and first / last seen in a minute, a specific first reply, and an engineering issue with the evidence attached.
How to tell it's working
- Fewer "is this happening?" questions to engineering.
- First replies on technical tickets mention what the logs show.
- Connections show healthy, or their last error.
- Engineering issues arrive with service, counts and times.
Who it's for
- Support engineers on technical products.
- Platform teams on Grafana, AWS or OpenTelemetry.
- Engineering managers who want fewer interruptions.
How it fits with the rest of TicketResolve
Log results appear in ticket investigation and TR Investigate, alongside Sentry, Datadog and New Relic results, deployments and known issues. Evidence flows into engineering tickets and fix verification.
Why search, not store, for Grafana and CloudWatch
For Grafana and CloudWatch, TR-AI doesn't store your logs; it searches them when an investigation opens and keeps results for five minutes. Your logs stay where they are, under your retention rules. Only the summary support needs (counts, services, first line, first and last seen) appears in the investigation.
Keeping the keys narrow
The safest key is one that can only do the job. A Grafana Viewer token can read but not change dashboards or data sources. An IAM user with only the three Logs Insights permissions can't read anything else in your AWS account. If a key is ever exposed, the damage is limited to searching logs, which is why a narrow key is worth the extra five minutes of set-up.
Choosing log groups and labels
Point the connection at the logs that matter for customer-facing problems: API gateways, workers that handle exports and imports, authentication. Searching every log group is slower and noisier, and rarely finds more. Most teams start with three or four sources and add more only when an investigation shows a gap.
Mistakes to avoid
- Admin keys "because it's easier".
- Sending the whole ticket as the search term.
- Pushing all telemetry instead of errors only.
- Ignoring a failed connection test.
Do it in TicketResolve, step by step
Where: Escalation → Hand-offs → Monitoring tools (/dashboard/escalation) and any ticket investigation. You'll need: a Grafana Viewer token, an IAM user limited to Logs Insights, or an OpenTelemetry collector. Full guides: Monitoring tools: Sentry, Datadog, New Relic, Grafana, CloudWatch and OpenTelemetry, Ticket investigation and TR Investigate.
- Create a narrow key: Grafana service account with Viewer, or an IAM user with
logs:StartQuery,logs:GetQueryResultsandlogs:DescribeLogGroups. - Connect it in Escalation → Hand-offs → Monitoring tools and choose log groups or labels.
- Run the test and check it succeeds.
- For OpenTelemetry, add an
otlphttpexporter with JSON encoding and the bearer token to the logs and traces pipelines. - Open a ticket's investigation and read "In your monitoring tools".
- Reply with what the logs show, and hand off with the evidence.
How to check it worked: investigations show matching lines with counts and first / last seen, or "no match", and connections show healthy.
Frequently asked questions
Can support search our logs without engineering access? Yes, with a read-only key scoped to log search, and with only the error code sent as the search term.
Does TR-AI store our logs? Not for Grafana or CloudWatch; it searches them when an investigation opens and keeps results for five minutes. For OpenTelemetry it keeps only error records and spans, masked, for 14 days.
Are OpenTelemetry metrics supported? No. Only error logs and traces, over OTLP/HTTP with JSON encoding.
What leaves TR-AI in a search? Only the error code or a short error message.
Which Grafana role is needed? Viewer.
Which AWS permissions are needed?
logs:StartQuery, logs:GetQueryResults and logs:DescribeLogGroups.
What does "no match" mean? The problem may be on the customer's side or not logged.
What if a connection breaks? It shows the last error instead of pretending to work.
Is personal data masked? Yes, for OpenTelemetry records: emails, keys, tokens and card numbers.
Explore Topics
Written by
Ghulam Shabbir
Content creator and writer sharing insights and stories.


