Prompt
How do I give developers and support separate access to the same logs?
Latest observation
The cleanest way is to store the logs once, then expose different views/permissions on top of them.
Common patterns
1) One log store, role-based access
Put all logs into a central system (e.g. ELK/OpenSearch, Splunk, Datadog, CloudWatch, Loki), then define:
- Developer role: full technical access, broader fields, deeper search, longer retention
- Support role: limited fields, ticket/customer-focused filters, maybe shorter retention or a curated subset
This is usually the best option because:
- no duplicated data
- consistent source of truth
- easier auditing and retention management
2) Separate indexes / partitions by audience
If your logging platform supports it, split into:
- a raw/engineering index
- a support-safe index
Support sees only the sanitized/curated stream; developers see the raw stream.
Use this when support should not see sensitive fields like:
- secrets
- internal debug payloads
- PII
- stack traces with sensitive context
3) Field-level filtering / masking
Keep the same logs, but mask or hide certain fields depending on role:
- redact passwords, tokens, emails, IPs, customer notes
- show only relevant metadata to support
- keep raw payloads for developers
This is ideal if both teams need the same event, but not the same details.
4) Different saved searches / dashboards
If the access difference is mainly about workflow, not data:
- developers get technical dashboards
- support gets customer-issue dashboards
- both query the same backend, but with curated views and permissions
Recommended setup
A practical model is:
- Raw logs → locked down to developers/SRE
- Sanitized logs → accessible to support
- Both feed from the same ingestion pipeline
- Use RBAC, field masking, and auditing
Key things to decide
- What must support never see?
- PII
- secrets
- internal flags
- stack traces
- Do they need full search or only issue lookup?
- Should support be able to export logs?
- How long should each role retain access?
- Do you need audit logs for access?
If you want a simple implementation
Use:
- a single log pipeline
- tags/labels like
audience=devandaudience=support - RBAC by group
- masking rules for sensitive fields
- dashboards saved per role
If you tell me what logging system you’re using (Splunk, Datadog, ELK/OpenSearch, CloudWatch, Loki, etc.), I can suggest a concrete access model for it.