Analysing Jitsi logs with Grafana Loki and OpenTelemetry: when a self-hosted Jitsi needs a central log store
A self-hosted Jitsi rarely fails in one place. A call that drops for a participant can leave traces in the web container, in Prosody where the XMPP session is set up, in Jicofo where the conference is allocated, and in the videobridge (JVB) where media is routed. If you have optional jibri or jigasi containers, their logs add a further set to check. Reading each container's output separately through docker logs or host files works for one server and one incident, but it becomes slow once you run several videobridges or need to match a failure to a time window across all components. A central log store lets you search those sources together by time, container and conference.
The pipeline has four parts. Each Jitsi container writes JSON logs, so fields such as level, timestamp and component can be parsed without guesswork. An OpenTelemetry Collector reads those logs, optionally adds labels and forwards them. Grafana Loki stores the compressed log chunks and a label index on object storage, and Grafana provides the query interface. OpenTelemetry is a framework, not a storage product, so Loki (or another backend) is still needed for storage. Grafana Alloy, which is built on the Collector, is Grafana's supported shipper for Loki, so you should decide early which shipper your team will run and maintain.
Set this up when you need to answer questions across components, retain logs for an audit or incident review, or give more than one engineer read access without shell access to the hosts. Before you start, confirm the exact configuration, labels and container names with the Jitsi Log Analyser documentation, since this page does not set those details. Also plan the Loki deployment mode, retention period, object store and an authenticating reverse proxy in front of Loki, because Loki has no built-in authentication. Logs from video meetings can contain personal data, so decide what is logged and who can read it before you turn the pipeline on.
How Jitsi container logs reach Grafana through Loki
Each Jitsi container writes JSON logs to stdout, and an OpenTelemetry Collector running as an agent or gateway picks them up and forwards them to Loki. Loki keeps its chunks and index on object storage, and Grafana queries it only through an authenticating reverse proxy, because Loki has no login layer of its own. Check that the proxy sets the X-Scope-OrgID tenant header and that nothing reaches Loki directly from users.
Log path from Jitsi containers through the Collector to Loki and Grafana.
How the Jitsi Log Analyser pipeline moves logs from containers to queries
The pipeline has four roles, and each one does a different job. The Jitsi Docker containers (web, prosody, jicofo, jvb and, if you run them, jigasi and jibri) are the sources. Each writes JSON log lines to standard output, and nothing in the chain stores them permanently. The OpenTelemetry Collector receives those lines, processes them (for example, adding resource attributes or dropping noise) and exports them. Loki stores them. Grafana queries them. Keeping these roles separate matters because OpenTelemetry is a framework and toolkit for generating, exporting and collecting telemetry, not an observability backend. You still need a store such as Loki and a visualization tool such as Grafana, and you should confirm which of those your team already operates before you add components.
The Collector can run as an agent beside the Jitsi containers on each host or as a gateway that receives from several hosts at once. A single-host Docker deployment usually fits the agent pattern, while several Jitsi servers that send to one central store point toward a gateway. Loki ingests OpenTelemetry logs over HTTP, so the Collector can export directly to it. Grafana Alloy, a vendor-neutral distribution of the OpenTelemetry Collector, is Grafana's supported log shipper for Loki, so ask whether your Loki operators expect Alloy or a plain Collector build. Check the Collector configuration docs before you choose, because receiver, processor and exporter stability varies by component.
On the storage side, Loki keeps compressed log chunks and its index in object storage, with TSDB as the recommended index store for Loki 2.8 and newer. Amazon S3, Google Cloud Storage and Azure Blob Storage are the recommended production stores. Retention is off by default, so confirm that the compactor has a retention policy before the first month of logs accumulates. Grafana then reads from Loki with a tenant header when multi-tenancy is enabled, and Loki has no built-in login, so an authenticating reverse proxy must sit in front of it. Plan that proxy, the Collector's credentials and the tenant mapping as part of the same design, since each one is a place where a log line can be read by the wrong person.
Deployment and configuration choices for the log pipeline
This table compares the Loki deployment modes, object store options, collector placement, shipper choices and retention settings for the Jitsi log pipeline. Read each row against your expected daily log volume and your team's operating capacity, then confirm the details with the current Loki and OpenTelemetry documentation before you commit.
| Choice | Options | Trade-off | When to choose it |
|---|---|---|---|
| Loki deployment mode | Monolithic (single binary) | Simplest to run, documented for up to about 20 GB of logs per day | A single Jitsi host or small deployment with modest log volume |
| Loki deployment mode | Simple scalable (separate read, write and backend targets) | Documented for approaching 1 TB per day, but being deprecated before Loki 4.0 | Only as a short-term choice on an existing install, with a planned move |
| Loki deployment mode | Microservices | Built for very large clusters, with the highest operating effort | Large, multi-region Jitsi estates that already run Loki at scale |
| Object store | Amazon S3, Google Cloud Storage or Azure Blob Storage | Recommended production stores, usually a managed service with a cloud contract | Production logs in a cloud account you already operate |
| Object store | MinIO or local filesystem | Supported, but the documentation does not typically recommend them for production | Lab environments, air-gapped test setups or proofs of concept |
| Collector placement | Agent on each Jitsi host | Captures container logs close to source, with one collector to configure per host | Several Jitsi hosts such as web, Prosody, Jicofo and videobridges on separate machines |
| Collector placement | Gateway receiving from many sources | Central point for processing and credentials, but a single component to size and secure | Teams that want one place to apply filtering, authentication and export |
| Shipper | OpenTelemetry Collector | Vendor-neutral and Apache-2.0 licensed, with component stability varying by component | You already standardize telemetry on OpenTelemetry |
| Shipper | Grafana Alloy | Grafana's supported log shipper for Loki, built on the OpenTelemetry Collector | You want the Grafana-supported path and a Grafana-centric stack |
| Shipper | Fluent Bit, Fluentd or Docker logging driver | Loki accepts these, but the Jitsi JSON logging setup must match each tool's parsing | You already run one of these tools across your fleet |
| Retention | Retention disabled (default) | Logs are kept indefinitely until retention is turned on, which grows storage without limit | Only for short tests, and set an explicit policy before production use |
| Retention | Global, per tenant or per stream rules | Each stream rule must be at least 24 hours, applied by the compactor | Set rules that match the log classes your security and privacy policy defines |
Setting up JSON logs, the Collector and Loki step by step
This sequence takes a self-hosted Jitsi from containers that write JSON logs to a Grafana view where each service's lines can be searched and filtered. Each step ends with a check, so the team confirms the path from container to Collector, Loki and Grafana works before relying on it for troubleshooting.
Enable and confirm JSON logging per container
The operator running the Jitsi Docker stack changes the logging settings for the web, prosody, jicofo and jvb containers, and for jibri or jigasi if you run them. Confirm the exact configuration keys for your release in the Jitsi Docker guide, since they are not covered here. Restart the stack, then read the latest lines from each container with your container runtime's log command. The step is done when every line parses as a JSON object with the timestamp, level and message fields your release emits, so the Collector can read them without custom parsing.
Choose the Loki deployment mode and object store
Size the deployment from your expected daily log volume. Loki's documentation places monolithic mode at up to about 20 GB of logs per day, and it states that simple scalable mode is being deprecated and will be removed with Loki 4.0, so avoid building a new install on it. Pick a supported object store such as Amazon S3, Google Cloud Storage or Azure Blob Storage, since the docs do not typically recommend MinIO or the local filesystem for production. The step is done when you have a written sizing note and a bucket in your own cloud account with credentials Loki can use.
Deploy Loki with auth enabled
Set auth_enabled to true so Loki runs multi-tenant and expects an X-Scope-OrgID header on every request. Point the storage section at the bucket from the previous step. Leave retention off until your team has decided how long Jitsi logs must be kept, because Loki's compactor retention is disabled by default and logs are kept indefinitely until it is enabled. Start Loki and confirm its readiness endpoint responds. The step is done when a test push with the tenant header is accepted and a query with that header returns the pushed line, while the same query without the header does not return it.
Place an authenticating proxy in front of Loki
Loki has no built-in authentication layer, so run an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of it, and keep the Loki port off public networks. The proxy authenticates operators and sets the tenant header for the Jitsi tenant. Review the Loki authentication docs for the required setup. The step is done when an unauthenticated request to the proxy address fails, and an authenticated query from your own machine succeeds.
Configure Collector receivers, processors and exporters
Run an OpenTelemetry Collector distribution that includes the contrib components, since the log-reading components you need may be there. Define a receiver that reads the container log output, a processor that attaches the service name for each container, and an exporter that sends logs to Loki through the proxy, using the OTLP HTTP path Loki accepts. Check each component's README for its stability level. Keep labels to a small set such as service and level. The step is done when the Collector starts without errors and its own logs show the pipeline is running with no export failures.
Connect Grafana to Loki as a data source
In Grafana, add Loki as a data source using the proxy address and the tenant header your setup requires. Use the operator authentication method your proxy supports, and limit access to the team that reviews Jitsi logs. Save the data source and run its connection test. The step is done when the test reports success and the Explore view lists the labels the Collector attached, including a service label for each Jitsi container.
Run test queries for each Jitsi container
In Explore, query each container separately using its service label and confirm that recent lines from the web, prosody, jicofo and jvb containers appear. Add a second query that filters on the JSON level field so only warnings and errors are shown. Write down the exact label names your Collector produced so later dashboards and alerts use the same names. The step is done when each service returns at least one labelled line within the time range you selected.
Trigger a warning and find it
In a non-production Jitsi, cause a harmless warning that your team has approved, for example by stopping a test service or sending a request with invalid input. Then search Grafana for the matching line within the time window you chose. This is an illustrative check, and the trigger should not affect live meetings. Save the query that finds it. The step is done when the warning appears with the expected container label and level, which confirms the path from container to Collector, Loki and Grafana works end to end.
Protecting Jitsi logs, tenants and credentials
A log pipeline for Jitsi gathers room names, participant identifiers and IP addresses in one place, so it needs the same access rules as the meetings it describes. The cards below cover who can read logs, how tenants are separated, how the Collector authenticates, and what Jitsi writes before anything leaves the host.
Treat logs as sensitive data
Jitsi logs can contain room names, participant identifiers and client IP addresses, which together reveal who met, when and from where. Before enabling shipping, review what each container writes at its configured log level and decide which fields to drop or mask in the Collector. Record that decision in your data inventory so the log store is classed with the meeting data it describes.
Jitsi Docker guidePut an authenticating proxy in front of Loki
Loki has no built-in authentication layer, so the documentation requires an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of it. The proxy should terminate TLS, check identity against your directory and allow only the query and push paths your operators and collectors need. Confirm that the Grafana data source and the Collector both reach Loki only through that proxy.
Loki authentication docsSeparate tenants with X-Scope-OrgID
When auth_enabled is true, Loki identifies each tenant by the X-Scope-OrgID header on every request. The header is set by the client, so it is only a boundary when the proxy overwrites or strips any value a caller sends and injects the header itself. Test this by querying one tenant with credentials for another and confirming the request is refused or returns no data.
Loki multi-tenancy docsSecure Collector receivers and exporters
OpenTelemetry Collector authenticator extensions can check credentials on incoming connections, for example with OIDC, and attach credentials to outgoing exporter requests, for example with the oauth2client extension. Use them so only known agents can push logs into the pipeline and the Collector presents a dedicated credential to Loki. Review the configuration best practices page before exposing any receiver beyond the host network.
Collector security practicesStore credentials outside configs
Proxy credentials, OIDC client secrets and tenant tokens should not be written into Collector YAML or compose files that get copied between hosts. Load them from environment variables or a secrets store you already operate, and restrict read access to the Collector configuration to the service account that runs it. Plan rotation as part of the Loki and Collector change process so a leaked token can be replaced without redeploying Jitsi.
Confirm retention and deletion rules
Loki keeps logs indefinitely until the compactor's retention is enabled, because retention is disabled by default. Set retention per tenant or per stream selector, and remember that each stream rule must be at least 24 hours. Decide who may query older meeting metadata, and confirm with your privacy and legal teams how long room names and IP addresses may be kept before you set the rule.
Loki retention docsRetention, storage and the cost of keeping Jitsi logs
Loki keeps logs indefinitely until you turn retention on. Retention is disabled by default, so a Jitsi log pipeline that works on day one will keep every line it ingests until retention_enabled is set in the Loki configuration and the compactor is running. Before go-live, decide how long Jitsi logs are needed for your own security, operations and compliance policy, then configure that period deliberately rather than inheriting an open-ended default. Confirm with your compliance and legal owners whether conference metadata, such as room names and participant identifiers that appear in logs, falls under a retention schedule of its own.
Loki lets you apply retention globally, per tenant or per stream selector, so you can keep Jitsi logs for one period and other tenants' logs for another. Each stream rule must be at least 24 hours. Use stream selectors on the labels you set for the jitsi containers, such as web, prosody, jicofo and jvb, if different containers need different periods. Check the Loki retention documentation for the exact configuration keys in your release before you write them into production, and test a rule on a non-production tenant first so you can see what gets deleted.
Cost follows volume and time. Object storage holds the compressed chunks and index, so the bill grows with the logs you ingest and the number of days you keep them, and it recurs every month. The compactor also needs compute and temporary space to process chunks and enforce deletion. Ask your platform team to measure daily log volume from a representative load test or pilot, then multiply by your retention period to size storage. Confirm the object store pricing and request charges with your cloud or storage provider, because those figures change and are not something this page can state.
Limits to confirm before you rely on this pipeline
The Jitsi Log Analyser, the OpenTelemetry Collector, the log SDKs and Loki each move on their own release cycle and carry their own stability notes. Confirm the versions and maturity levels in your environment before you treat this pipeline as a production log record.
Log Analyser release and container versions
Check which release of the Jitsi Log Analyser you are deploying and which Jitsi container images it expects. Log field names and JSON layouts can change between releases, so a parser written for one set of containers may silently miss fields on another. Pin the Jitsi image tags you tested against and repeat the parse check after every Jitsi upgrade, before the change reaches production.
Jitsi Meet repositoryCollector component stability
Stability is documented per component in the OpenTelemetry Collector repository, and the levels are mixed across receivers, processors and exporters. Check the README of every component in your pipeline, including the file or container log receiver, any parsing processor and the Loki exporter, and record the level you accept. An experimental component in the log path needs a fallback plan and an owner who watches its release notes.
OpenTelemetry status pageLog SDK maturity
Log SDK maturity varies more than trace and metric support, and several languages still have log SDKs in development. The Jitsi containers emit their own JSON logs, so this pipeline relies on the Collector's file and container log handling rather than application SDKs. If you add application-side log instrumentation later, confirm the SDK status for that language before depending on it for audit-relevant events.
Loki version against current releases
Compare the Loki version you run with the current releases on GitHub and read the release notes for every version between yours and the target. Check the configuration keys you use, including the TSDB schema and retention settings, because they change between major lines. Plan a tested upgrade path, since a Loki version without security updates is a risk on a system that holds logs from your video infrastructure.
Loki releases on GitHubStorage tier for production
Loki's documentation recommends Amazon S3, Google Cloud Storage and Azure Blob Storage for production object storage, and notes that S3-compatible stores such as MinIO and the local filesystem are supported but not typically recommended for production. Confirm which tier you plan to use and whether your organization accepts that choice. Also confirm the deployment mode, since the simple scalable mode is being deprecated and is planned for removal with Loki 4.0.
Loki storage docsAuthentication in front of Loki
Loki has no built-in authentication layer, so an authenticating reverse proxy must sit in front of it. Confirm which proxy you will run, how it maps users to the X-Scope-OrgID tenant header, and that clients cannot set that header themselves. Gaps here expose log data from your video meetings to anyone who can reach the endpoint.
Loki authentication docsQuestions teams ask before setting up Jitsi log analysis
How much effort does Jitsi log analysis setup take, and what drives it?
The effort depends on how many containers you ship logs from, which Loki deployment mode you choose, how much your existing observability stack already covers, and how complex your retention rules are. The Jitsi Docker setup runs separate web, prosody, jicofo, jvb, and optionally jigasi and jibri containers, so each one needs its JSON logging configured and its output routed correctly. Loki's documented modes range from a single monolithic binary to microservices for very large clusters, and choosing a mode early sets the size of the storage and access work. Ask any partner to break the estimate down by container count, Loki mode, retention rules, and Grafana access before agreeing a timeline in writing.
Can our own team set up Jitsi logging with Loki without outside help?
A team that already runs Docker, object storage, and Grafana can usually build this in-house, provided someone owns the configuration and can troubleshoot the pipeline. The harder parts are usually not the first install but the ongoing items: keeping the OpenTelemetry Collector configuration correct across Jitsi upgrades, deciding what to keep and for how long, and ensuring Loki sits behind an authenticating reverse proxy because it has no built-in authentication layer. Check whether your engineers have time for those recurring tasks, not only the initial build. A partner can take on the implementation, hardening, and handover if you prefer a fixed scope.
What access and infrastructure does a Jitsi log analysis setup need from us?
You will need access to the Docker host or hosts running Jitsi so the containers can emit JSON logs and the Collector can read them. You also need an object store for Loki's chunks and index, since Loki's recommended production stores are Amazon S3, Google Cloud Storage, and Azure Blob Storage, while local filesystem storage is not typically recommended for production. Grafana needs a DNS name and TLS certificate so operators can reach it, and Loki needs a reverse proxy that handles authentication and sets the X-Scope-OrgID header when multi-tenancy is enabled. Confirm with your network and identity teams where each of these runs and who approves changes.
Which parts of Jitsi log analysis are one-time work and which recur?
The one-time work covers designing the pipeline, configuring JSON logging for each container, writing the Collector configuration, creating dashboards, and setting access rules. The recurring work includes paying for object storage that grows with log volume, reviewing retention because Loki keeps logs indefinitely until retention is enabled, reviewing the Collector and Loki versions when new releases appear, and checking that dashboards and queries still match the Jitsi version you run. Retention is particularly important: it is disabled by default and can be set globally, per tenant, or per stream selector, with each stream rule at least 24 hours. Ask any quote to separate setup fees from ongoing support and storage costs.
Why use an OpenTelemetry Collector instead of only a Docker log driver?
A Docker log driver can send container output to Loki directly, but the OpenTelemetry Collector sits between your sources and your backend, so you can receive, process, and export logs through one configurable layer. It can run as an agent next to the Jitsi containers or as a gateway that accepts data from several sources, and it can add authentication to incoming connections or outgoing exporter requests. Loki also ingests OpenTelemetry logs over HTTP, and Grafana's own shipper, Grafana Alloy, is a vendor-neutral distribution of the Collector. The trade-off is one more component to version, secure, and monitor, so ask whether the extra control justifies it for your environment.
Does the Loki license affect how we run log analysis for Jitsi?
Grafana Labs announced on April 20, 2021 that Loki and its other core projects would move from Apache License 2.0 to AGPLv3, so the license you accept depends on the version you deploy and how you modify it. The OpenTelemetry Collector repository is licensed under Apache-2.0, which is a separate project with its own terms. If you plan to modify Loki or offer it as a service to others, have your legal team review the AGPLv3 obligations before the build starts. Grafana Labs publishes its licensing details, and that page is the right reference for your review.
How do we keep Jitsi logs useful without over-collecting sensitive data?
Start by deciding which fields you need for troubleshooting, such as container name, severity, and conference or component identifiers, and drop or mask anything that could identify participants. Logs are only as safe as the access controls around them, so restrict who can query Loki, enforce tenant boundaries if you use multi-tenancy, and keep the reverse proxy and Grafana login under your identity system. Set retention to match your policy instead of keeping everything indefinitely, since the default leaves logs in place until you enable it. Confirm with your security and privacy teams which fields may be stored before enabling collection on production meetings.
How DeployOpen scopes and delivers Jitsi log analysis
DeployOpen is a Chainscore Labs company that plans, implements and supports self-hosted open-source platforms inside the client's own infrastructure, including the cloud accounts, data centers or air-gapped networks where the Jitsi containers, Loki and the OpenTelemetry Collector would run. For a log analysis engagement, the written scope comes before any work starts, and it should name each Jitsi container whose logs are in scope, the Loki deployment mode, the object store used for chunks and the index, the retention rules and the Grafana access model. Most engagements are fixed-scope, so scope, deliverables and timelines are agreed in writing first, and a quote follows from that document rather than from a standard package.
The written scope should also settle the decisions that change effort most. Those include whether logs are shipped through Grafana Alloy, which is Grafana's supported log shipper for Loki, or through a plain OpenTelemetry Collector pipeline; whether Loki runs with auth_enabled and separate tenants; how the authenticating reverse proxy in front of Loki is handled; and who owns the retention decision once the compactor is switched on. Ask the provider to state which of these are included, which are client tasks, and which need confirmation from the Loki or Collector release notes for the versions you plan to run. Ask also what handover covers, such as runbooks, dashboards and test queries.
Ongoing support, upgrades and continuous testing are available as retainers, which matters for a logging stack because Loki, the Collector and the Jitsi images each release on their own schedule. Ask for the upgrade approach, the test steps run after each upgrade, and how log ingestion is checked after a change. A quote should separate the one-time build from any recurring retainer, and show which parts depend on your log volume, number of Jitsi servers and number of Grafana users. DeployOpen does not publish a price list, so the written scope is the basis for comparing offers.

