How Grafana Logs Drilldown and Explore let engineers browse Loki without LogQL
Loki has no user interface of its own, so the engineers who need logs will reach them through Grafana. In most deployments, Grafana Logs Drilldown and Explore are the front end that lets people browse Loki without writing LogQL first. Logs Drilldown visualizes log data using default queries built from the stream labels Loki already holds, so an engineer can pick a service or namespace, see volume over time, and narrow to the lines that matter with a few clicks. Explore remains the place for typing a query by hand when the default views are not enough.
Teams need this when log access is wider than the group that writes LogQL. On-call engineers, support staff and developers in other product areas often need to answer "what changed at 14:05" without learning label syntax or the query grammar. Before rollout, confirm which labels your Loki data source exposes and which ones your teams will recognize, because Logs Drilldown is only as useful as the labels it can group by. Check the Grafana version your team runs against the Grafana releases page, since Logs Drilldown behavior and availability depend on the Grafana release line.
Logs Drilldown does not replace the rest of your observability work. Dashboards still carry the panels that a team agrees to watch every day, and they need queries that someone has reviewed for cost and correctness. Alerting on log patterns is a separate decision, made in the ruler or Grafana Alerting, and it should not depend on someone happening to browse the right view. Advanced investigations, such as metric queries over error rates or parsing unusual formats, still require LogQL skills, so plan a small group of people who can write and review queries for those cases.
The practical decision is who gets which access. Each person who queries logs needs a Grafana identity, and each query runs against a tenant selected by the data source, so a per-tenant data source or a tenant-aware setup is what keeps one team's logs away from another's. Confirm how your Grafana instance authenticates users and maps them to roles before opening Loki to a wider audience, and test with an account from each group to verify that it sees only the streams it should.
Which Grafana access pattern fits which team
This table compares Logs Drilldown, Explore, shared dashboards, and per-tenant versus shared Loki data sources, with the access controls each one depends on. Read each row against the people who need logs and the isolation you must prove. The main takeaway is that Grafana data source routing does not replace authentication, so the reverse proxy and Grafana sign-in must enforce who reaches which tenant.
| Access pattern | Best fit | Main trade-off | Access control to confirm |
|---|---|---|---|
| Logs Drilldown | Engineers exploring unfamiliar services without writing LogQL | Guided views depend on well-chosen labels; unlabeled data is harder to browse | Grafana sign-in and the data source it reaches for each user |
| Explore | Ad hoc investigation by people comfortable with LogQL | Free-form queries can be expensive on large time ranges | Editor role in Grafana and query limits set for the tenant |
| Shared dashboards | Recurring views for on-call, service owners and managers | Panels run queries under the data source configuration, so a broad panel can expose more than a viewer expects | Folder permissions and who can edit panels |
| One data source per tenant | Strict separation between teams, customers or environments | More data sources to provision and keep in sync with tenant IDs | Each data source sets the X-Scope-OrgID header; confirm users cannot pick another tenant |
| Single shared data source | One platform team or a small group with the same visibility | Tenant boundaries rely on the proxy and Grafana, not on the data source itself | Reverse proxy rules and Grafana roles, since Loki does not authenticate users |
| Grafana SSO for query users | Organizations that already run an identity provider | Some SSO features, such as SAML and team sync, depend on the Grafana edition; confirm for your plan | Identity provider groups mapped to Grafana roles and tenant access |
Setting up Loki as a Grafana data source with SSO
This sequence takes Loki from a multi-tenant backend to a Grafana installation where engineers sign in through SSO and each tenant's logs are reachable only through its own data source. The result is a configuration you can review, reproduce and verify tenant by tenant.
Confirm Loki tenancy and tenant IDs
The platform engineer who runs Loki confirms that the cluster has auth_enabled set to true and writes down the tenant IDs that teams or environments will use. Each tenant ID becomes the value sent in the X-Scope-OrgID header, so the list should be agreed with the teams that own the logs before any data source is created. Check the running configuration and confirm that a test push with one tenant ID is not readable with another. The step is done when you have a written tenant map and a test query that returns data only under the intended ID.
Place an authenticating proxy in front of Loki
Loki has no authentication layer of its own, so the platform team places an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of it. The proxy should accept only authenticated requests, and the tenant header should be set or validated at the proxy so that users cannot choose tenants they are not entitled to. Confirm the proxy choice against your identity provider and your security team's standards. The step is done when an unauthenticated request to the Loki endpoint is refused and an authorized request for one tenant succeeds.
Install Grafana on a production database
The Grafana administrator installs Grafana using one of the supported packages or container images and points its configuration database at MySQL or PostgreSQL, because SQLite does not scale for production and high availability. For high availability, plan two or more active-active Grafana servers behind a load balancer that share the same database. Confirm the database versions against the Grafana installation documentation before you start. The step is done when Grafana starts against the external database, the login page loads through the load balancer, and a restart does not lose settings.
Add one Loki data source per tenant
In Grafana, the administrator creates one Loki data source for each tenant, pointing at the proxied Loki URL and setting the X-Scope-OrgID header to that tenant's ID. Naming each data source after its tenant makes access reviews easier to read. Keep the header value in the data source configuration, not in a shared default. The step is done when each data source passes its connection test and returns logs only for its own tenant, which you confirm with a short query in Explore.
Configure SSO with a supported method
The Grafana administrator enables a sign-in method that the installed edition supports. Grafana's authentication documentation lists LDAP, generic OAuth, Entra ID, Okta, GitHub, GitLab, Google OAuth, auth proxy and JWT as available in all editions, while SAML, team sync and SCIM provisioning are limited to Grafana Enterprise and Grafana Cloud. Confirm which method your identity provider supports and which edition you run before choosing. Map identity provider groups to Grafana roles so that a user's access follows their group membership. The step is done when a test user signs in through the identity provider and the role shown in Grafana matches the expected group.
Provision data sources as code
The Grafana administrator defines the Loki data sources in provisioning files so that tenant mappings are loaded at startup and stored in version control instead of being edited by hand. Grafana also documents Terraform and Git Sync as further as-code options, so confirm which one fits your change process. Store any secrets referenced by the files in your secrets manager rather than in the files themselves. The step is done when a fresh Grafana instance built from the repository shows the same data sources and passes the same connection tests.
Verify tenant isolation and access
The security or platform engineer signs in as one test user per tenant and confirms that each user can open only the Loki data sources their group allows. Run the same check with a user who belongs to no tenant group, and try a direct request to Loki with a tenant header that the user is not entitled to. Record the results with the date, the users tested and the outcome. The step is done when every test returns the expected access and the evidence is stored with your configuration records for later review.
Protecting who can query which logs
Logs often hold credentials, personal data and customer identifiers, so who can read them matters as much as how they are stored. The cards below cover the controls that decide access to Loki data through Grafana: the proxy that authenticates users, the tenant header, identity federation by Grafana edition, browser hardening and query auditing.
Authenticating proxy as the trust boundary
Loki has no built-in authentication layer, so the reverse proxy in front of it is the only thing that checks who a user is. Place nginx, HAProxy, OAuth2 Proxy or Pomerium in front of Loki, and make sure Grafana reaches Loki only through that path. Check that no network route allows direct access to the Loki port from user subnets, because a direct request bypasses every rule on the proxy.
Loki authentication docsStopping users from setting tenant IDs
In multi-tenant mode, Loki reads the tenant from the X-Scope-OrgID header on every request. The proxy must overwrite or strip any tenant header sent by the client and set the header only from the tenant mapped to the authenticated user. Test this with a request that claims another tenant, because a single missed header rule exposes every stream in that tenant.
Loki multi-tenancy docsMatching SSO features to Grafana edition
SAML, team sync, active sync and SCIM provisioning are available only in Grafana Enterprise and Grafana Cloud, while LDAP, generic OAuth and Entra ID are available in every edition. Confirm which identity protocol your identity provider requires before you choose an edition, and confirm whether joiners and leavers must be removed from Grafana automatically. Ask your Grafana contact to confirm the current edition matrix for your version.
Grafana authentication docsBrowser session hardening
Grafana sessions are browser sessions, so cookie and script settings protect query access as much as the login does. Enable secure and SameSite cookies, define a Content Security Policy and Trusted Types, and hide the Grafana version from unauthenticated users. Review these settings after each upgrade, because a default change can weaken a control without any visible error.
Security hardening docsMetrics endpoint access
Grafana exposes a metrics endpoint that can reveal version, usage and configuration details to anyone who can reach it. Require authentication for that endpoint and keep it off public listeners. Also enable domain verification against DNS rebinding so a malicious page cannot reuse a browser session against an internal Grafana host.
Auditing who queried what
Retention and access rules do not show who read a log line, so you need an audit trail at the proxy or Grafana layer. Record the user, tenant, query text, time range and timestamp for each Logs Drilldown and Explore request, then review the trail for unusual range scans. Confirm with your security team which fields they need and how long the records are kept.
How tenant data sources and Grafana SSO fit together
The request path for a logged-in engineer runs from the browser to Grafana, then through an authenticating reverse proxy, then to Loki, and identity is checked at two different points. The browser signs in to Grafana through an SSO option configured in Grafana's authentication settings. Loki itself has no authentication layer, so the reverse proxy in front of it (nginx, HAProxy, OAuth2 Proxy or Pomerium, as the Loki authentication documentation lists) must verify the caller before forwarding anything. Each Grafana data source for a tenant sends the X-Scope-OrgID header, and that header is what Loki uses to pick the tenant. The reader should confirm which component stamps that header and that the proxy strips any header a client supplies, because a client that can set its own tenant ID can read another team's logs.
Grafana's SSO options differ by edition. The Grafana authentication documentation lists LDAP, generic OAuth, Entra ID, Okta, GitHub, GitLab, Google OAuth, auth proxy and JWT as available in all editions, while SAML, team sync, active sync and SCIM provisioning are limited to Grafana Enterprise and Grafana Cloud. Before choosing a sign-in method, confirm which edition you run and whether your identity provider needs SAML or SCIM for group mapping. Grafana roles and folder permissions then control what each person can do inside Grafana, such as opening Explore or saving a dashboard.
Loki's tenancy and Grafana's permissions are separate controls, and neither enforces the other. A Grafana admin who can edit a data source can point it at any tenant ID, and Grafana roles do not limit which Loki tenant a data source reads. Tenant isolation therefore depends on the proxy in front of Loki, which should map each authenticated group to the tenant IDs it may use. Test this with two test users in different groups: each should see only their tenant's logs in Logs Drilldown, and a manually edited header should be rejected. Also review which users can change data source settings, since that is the one Grafana permission that can widen a user's log access.
Request flow from engineer to Loki tenant
The flow starts in the engineer's browser, which signs in through the SSO identity provider and reaches Grafana. Grafana selects a data source for the tenant, and that request passes through the authenticating reverse proxy before it reaches Loki, where the X-Scope-OrgID header selects the tenant partition. Check that the proxy, not Grafana, is the only path to Loki, and that each data source sends only its own tenant ID.
Trust boundaries between the browser, Grafana, the reverse proxy and Loki tenant partitions.
Limits to confirm before you roll this out
Grafana and Loki each set limits that decide how people will explore logs: which SSO features your Grafana edition includes, which release and support window you are on, and how Loki's deployment mode and query limits behave. Confirm these before you build the data sources and access model, because changing them later usually means rework across dashboards, tenants and identity settings.
Grafana edition and SSO features
Confirm which Grafana edition you will run before you design sign-in. According to the Grafana authentication docs, generic OAuth, Entra ID, Okta, Google and LDAP work in all editions, but SAML, team sync, active sync and SCIM provisioning are available only in Grafana Enterprise and Grafana Cloud. If your identity policy requires SAML or group-based team mapping, confirm that edition and licensing with Grafana Labs before you pick an identity flow for the people who query logs.
Authentication docsGrafana release and support window
Check which Grafana minor release you will deploy and when it leaves support. Grafana's upgrade guidance says each minor release is supported for 9 months and the last minor release of a major version for 15 months, with patch releases at least monthly. Confirm that the Logs Drilldown app and the Loki data source behave as your reviewers expect on that exact version, and plan a recurring upgrade window rather than a one-time install.
Upgrade guidanceLogs Drilldown availability in your version
Logs Drilldown is the no-LogQL entry point for engineers, so verify it is present and enabled in the Grafana version and plugin setup you chose. Test it against a non-production Loki data source before committing to the layout of your access model. Also confirm that default queries return useful results on your label scheme, since sparse or high-cardinality labels can make the drilldown views slow or hard to read.
Per-tenant query limits
Ask who sets query limits for each tenant before you give analysts access. In a multi-tenant Loki cluster, each team or customer tenant can reach different limits, and a broad drilldown query can hit series, byte or time-range ceilings that look like Grafana errors. Confirm the per-tenant limits for each X-Scope-OrgID your data sources will send, and agree who owns changes to them.
Multi-tenancy docsLoki deployment mode and simple scalable deprecation
Confirm your Loki deployment mode before you wire Grafana to it. The Loki documentation states that simple scalable deployment mode is being deprecated and will be removed with the Loki 4.0 release, so a Grafana setup built on that mode will need a migration path. Monolithic, simple scalable and microservices modes present different read endpoints, so record which one your data source URL targets and who owns the change.
Deployment modes docsGrafana Live limits in HA
If you run Grafana in high availability, check how live features behave before users depend on them. The Grafana HA docs note that Grafana Live has limitations in HA, and that alerting needs extra configuration to avoid duplicate notifications. Test live tailing and dashboard refresh across two or more active-active nodes behind your load balancer, and confirm that database-backed sessions let users reach any node without re-authenticating.
High availability docsQuestions teams ask before exploring Loki in Grafana
How much effort does setting up Grafana for Loki take?
The effort depends on how many Grafana instances, data sources and tenants you need, and on how much of the setup is already in place. A single Grafana server with one Loki data source is a small task, while a high-availability Grafana with several tenant data sources, provisioned dashboards and an identity integration is a larger one. Grafana's high availability guidance calls for two or more active-active servers behind a load balancer, sharing a MySQL or PostgreSQL database, and Grafana notes that SQLite does not scale for production. Ask any partner to break the quote into database, load balancer, data source, provisioning and SSO work so you can see what drives the price.
Can our own team set up Grafana and tenant access without a partner?
Yes, many teams do this in-house, especially if they already run Grafana and know Loki's tenancy model. Loki is multi-tenant when auth_enabled is true, and each request identifies its tenant with the X-Scope-OrgID header. Because Loki has no built-in authentication layer, your team must also run an authenticating reverse proxy in front of it and map each user to the tenants they may read. The hard parts are usually the proxy and access mapping, not Grafana itself. A partner is most useful when the team lacks time, has no experience with proxies or identity providers, or needs the work evidenced for an audit.
What do you need from our team to start?
Expect to provide access and decisions rather than hands-on build time. Typical inputs are:
- Administrative access to your identity provider, with the application registration rights needed for OAuth or OIDC
- A written list of tenants, the teams or customers behind each one, and who may query each tenant
- Network and change approval for the reverse proxy, DNS names, certificates and any firewall rules between Grafana and Loki
- A test environment and a named owner who can approve dashboard and data source changes
Confirm these items in the scope before work starts, since delays in identity or network approval often set the timeline more than the technical work does.
Does Grafana SSO require an Enterprise license?
It depends on the protocol. According to Grafana's authentication documentation, all editions support LDAP, generic OAuth, Entra ID, Okta, GitHub, GitLab and Google OAuth, auth proxy and JWT. SAML, team sync, active sync and SCIM provisioning are available only in Grafana Enterprise and Grafana Cloud. If your identity provider only offers SAML, or you need group-based team sync and automatic provisioning, budget for an Enterprise option. Otherwise an OAuth or OIDC integration in open-source Grafana is often enough. Confirm your identity provider's protocol and the group mapping you need before choosing.
How long does a fixed-scope Grafana and Logs Drilldown engagement take?
Duration follows from the agreed scope, so there is no standard timeline to quote here. The main drivers are the number of Grafana instances and tenants, how many identity and network approvals are needed, whether dashboards must be migrated or built from scratch, and how many rounds of user acceptance testing your teams want. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask for a written plan that lists each milestone, the approvals it depends on and the testing you will do before users receive access.
Is Grafana Cloud a simpler alternative to self-hosting Grafana?
Grafana Cloud can be simpler to run because Grafana Labs operates the Grafana service, but it changes where your queries and access rules live. Grafana's pricing page lists a free tier, a Pro tier with a monthly platform fee plus usage, and an Enterprise tier with a minimum commitment, so compare total cost under your expected usage. Consider whether your Loki cluster and tenant data can be reached from a hosted Grafana under your network and compliance rules. If you keep Loki in your own infrastructure, you must decide how Grafana Cloud connects to it. Confirm these points with Grafana before deciding.
What breaks most often when engineers first explore Loki logs?
The most common problems come from access and configuration rather than from the query engine. A user may see no data because the reverse proxy did not forward the right X-Scope-OrgID header, because the data source points at the wrong tenant, or because group mapping in the identity provider does not match the tenant list. Dashboards that run broad time ranges can also feel slow, which is why teams should train users on narrow time ranges and precise stream selectors. Include a test plan that checks each tenant with a user from each group before rollout.
Choosing the access pattern for your teams
The decision starts with the people who query logs and the tenants they belong to. If they all sit in one tenant, a single Grafana data source scoped to that tenant with X-Scope-OrgID is usually enough. If they need to read across tenants, the open-source Loki and Grafana path does not give you label-based cross-tenant access control on its own, so you must confirm whether Grafana Enterprise Logs fits your requirements. If SSO or SAML is required, check the authentication matrix for your Grafana edition before you commit, because SAML is limited to Grafana Enterprise and Grafana Cloud.
Tenant scope and SSO requirements decide the Grafana access model.
How DeployOpen works on this
DeployOpen plans and builds Grafana access to Loki inside your own infrastructure, so engineers can explore logs through Logs Drilldown and Explore while tenant separation and sign-in are designed up front. Each engagement starts with a written scope that names the users, tenants, data sources and access rules involved.
How we scope
- We list which teams need Logs Drilldown, Explore or dashboards and which Loki tenants each group may read.
- We record how Grafana sign-in should work with your identity provider and which people hold admin rights.
- We agree in writing which Grafana version, hosting model and reverse proxy in front of Loki are in scope.
- Engagements are fixed-scope, so deliverables and timelines are agreed in writing before any work starts.
How we build
- We configure one Loki data source per tenant, sending the X-Scope-OrgID header that matches each team's tenant ID.
- We place an authenticating reverse proxy in front of Loki, since Loki does not provide its own authentication layer.
- We connect Grafana to your SSO provider and check that each user reaches only the tenants they are approved for.
- We test Logs Drilldown and Explore queries against real tenant data to confirm access boundaries hold.
How we hand over
- We deliver Grafana data source and dashboard definitions as provisioning files so the setup can be reviewed and rebuilt.
- We document the access model, tenant mapping and sign-in configuration for your security and compliance reviewers.
- We walk your engineers through Logs Drilldown and Explore so teams can find logs without writing LogQL.
- We deliver a written handover covering what was configured, what was tested and what remains your responsibility.
How we support
- Ongoing support, Grafana upgrades and Loki version updates are available as a retainer, scoped in writing.
- We can retest access boundaries after Grafana or identity provider changes to confirm tenant separation still holds.
- We can review new teams or tenants being added and update data sources and proxy rules to match.
- Support scope, response expectations and fees are confirmed in a quote based on the written scope, not a published price list.

