Why n8n logging needs a plan before the first incident
Set n8n logging through the instance's log level, log output and file settings, then decide early how those logs leave each host. A self-hosted deployment usually runs a main process, one or more worker processes and webhook processors, and each writes its own output. When an execution fails at 2 a.m., the team needs to correlate lines from all three quickly, so the logging design has to exist before the first incident. Central collection with Loki or OpenSearch fills the gap where log streaming is not part of the plan, since n8n's pricing page places log streaming only in the Business and Enterprise plans.
This page covers three things: what to configure inside n8n (levels, outputs, file size and count limits, and separate settings for each process type), what the shipper and the backend do with those logs, and what to confirm for the edition you run. A shipper such as Grafana Alloy or Fluent Bit reads container output and forwards it, while Loki or OpenSearch stores and searches it. Each piece has its own retention, access and storage decisions, so they should be sized together rather than picked one at a time.
Confirm three points with your own environment before you choose a design. First, check which n8n edition and plan you hold, and whether log streaming is available to you. Second, decide where log files will live on each host or container and who can read them, because n8n logs can contain workflow context. Third, agree on how long logs must be kept and who approves access to them. Your answers determine whether the backend is Loki or OpenSearch and how much storage and access control you need to plan for.
Configuring n8n log levels and outputs
This table compares the logging options available to a self-hosted n8n instance: log level, console or file output, file size and count limits, and log streaming. Read each row as a decision point, then check the exact variable names and accepted values for your n8n version in the self-hosting documentation. The main takeaway is that log streaming is a paid-plan feature, so most teams will rely on file or console output and ship logs with their own collector.
| Option | What it controls | When it fits | What to confirm |
|---|---|---|---|
| Log level | How much detail n8n writes, from errors only to debug output | Keep a production instance at a conservative level and raise it temporarily while troubleshooting | Accepted level names and the default for your version in the self-hosting docs |
| Console output | Writes logs to standard output so the container runtime captures them | Containerized deployments where Docker, Kubernetes or a log agent already collects stdout | Whether your version writes to console by default and which format it uses |
| File output | Writes logs to files on the host or in a mounted volume | Bare-metal or VM installs, or when an agent tails files and you need a local copy | The log file location, and who owns and rotates the volume |
| File size and count limits | Caps how large each log file grows and how many rotated files are kept | Any file-based setup, so disk use stays bounded on long-running instances | Maximum size and file count variable names, and whether limits apply per process |
| Separate process logs | Keeps main, worker and webhook processor output distinguishable | Queue mode, where workers and webhook processors fail independently of the main instance | How each process type is labeled in its output and whether separate files are supported |
| Log streaming | Sends execution and event logs from n8n to an external destination | Only where the plan includes it: n8n's pricing page lists log streaming in the Business and Enterprise plans | Plan entitlement and supported destinations with n8n before you design around it |
Choosing a log path by edition and hosting model
The free Community edition is the lowest-cost self-hosted path, but the pricing page lists log streaming only with the Business and Enterprise plans. A Community instance therefore has no built-in way to forward logs to your own platform, so you need a host or container collector from the start. Confirm with n8n which log outputs the Community build exposes before you choose a shipper.
- No log streaming: Log streaming is listed on the pricing page only for Business and Enterprise, so plan a collector from day one.
- Local output first: Logs stay in the process output or on the file system until a shipper collects them. Confirm whether your version writes to files, standard output or both.
- Shipper options: Grafana Alloy, Fluent Bit or the Docker logging driver can collect the output and send it to Loki, depending on your hosting model.
- Local retention: Any file on the host needs size and count limits that you set yourself, so confirm which rotation settings your version supports.
- Entitlement check: Ask n8n to confirm Community capabilities in writing before you design around them, since plan terms can change.
Check that each log source is captured, that a failed execution appears at the destination, and that the collector recovers after a restart.
On Business and Enterprise plans, the pricing page lists log streaming as included, so the first design question is whether streaming to your destination fits your architecture. Streaming covers n8n's own log output, but the supporting services in your stack, such as PostgreSQL, Redis and the reverse proxy, still write logs that a host or container collector must capture. Verify the supported destinations and log types with n8n through the n8n pricing page and your order form before you commit to a design.
- Streaming by plan: The pricing page places log streaming in the Business and Enterprise plans, so confirm that your specific plan includes it.
- Destinations to confirm: The supplied information does not list which destinations streaming supports, so ask n8n directly.
- Collectors for other services: Database, cache and proxy logs still need Alloy, Fluent Bit or a driver-based path.
- Multi-main sites: Multi-main high availability is limited to Enterprise self-hosted deployments, so each main instance must be covered by your log design.
- Written entitlement: Ask for the log streaming entitlement to appear in your contract or order documentation.
Map every service in the stack to either streaming or a shipper, so that no component is left uncollected.
In containers, n8n writes to standard output and the container runtime holds that output, so the collection path usually runs through the runtime or a node-level agent. The Docker logging driver can send container output to Loki without a separate agent, which suits single-host Docker deployments. On Kubernetes, an agent such as Grafana Alloy or Fluent Bit typically runs on each node to read container logs. Loki's send data documentation lists these supported paths, and you should confirm the output format your n8n version produces.
- Docker logging driver: Sends container output to Loki directly, which keeps single-host setups simple.
- Node agent on Kubernetes: Run Alloy or Fluent Bit on every node so pod logs from main, worker and webhook workloads are captured.
- Label discipline: Loki indexes labels, so use stable labels such as container, process role and environment, and avoid per-execution identifiers.
- Process separation: Label main, worker and webhook containers distinctly so their logs can be filtered apart during an incident.
- Runtime rotation: Container runtime log rotation limits how much local output survives a failure, so confirm the settings on your runtime.
Confirm that a restarted or rescheduled container keeps shipping logs to the same destination without manual changes.
On a host or VM installed directly, n8n writes to whatever output its service manager captures, and your team owns rotation, permissions and shipping. No container driver is involved, so a host-level agent such as Alloy or Fluent Bit must read the log files or the system journal and forward them. The operational concerns shift to the host itself, including the log directory's ownership and free disk capacity. Confirm the log file settings and locations for your installation method with n8n documentation before you write collector configuration.
- Service manager capture: Confirm whether your service manager captures standard output for the n8n process and how that output is stored.
- Host agent: Alloy or Fluent Bit reads the files or journal and forwards entries to Loki.
- Size and count limits: Set log file size and file count limits so a burst of executions cannot fill the disk.
- Least-privilege access: The collector user needs read access to the log files without broader access to n8n data or credentials.
- Patch alignment: Plan agent updates on the same host patch cycle as n8n upgrades, so the two stay compatible.
Test rotation by generating a large volume of output, then confirm that the agent resumes shipping after a service restart.
How n8n container logs reach Loki or OpenSearch
The path starts in the n8n main, worker and webhook processes, which write logs to the console or to files with size and count limits. A collector such as Grafana Alloy or Fluent Bit reads those outputs and forwards them to the log backend. Loki sits behind an authenticating reverse proxy because it has no built-in authentication, and that proxy and the backend form the trust boundary to verify. Check that the queue, database and credential paths stay outside the log pipeline, and that no secrets reach the log stream.
Log flow from n8n processes through a collector into Loki or OpenSearch.
Setting up n8n logs and shipping them step by step
This sequence turns n8n's main, worker and webhook processes into labeled, searchable log streams with a tested retention period. Each step ends with a check you run before moving on, so problems surface while the setup is still small.
Set log level and output for each process
The platform engineer sets the log level and output for the main, worker and webhook processes separately, using the logging settings in n8n's configuration for the installed version. Confirm the exact setting names in n8n's documentation for that version before changing them. Restart each process type and read its first lines of output. The step is done when every process reports the level and destination you set and none of them falls back to a default you did not choose.
Set file size and count limits
If any process writes to files, set a maximum file size and a maximum number of files for it, so rotation cannot fill the disk of a host or container. Ask the n8n vendor or check the logging documentation for the limit settings that apply to your version. Run the process under normal load long enough to trigger rotation, or lower the limit temporarily in a test environment. The check passes when the number of files stays within the limit and the oldest file is removed as expected.
Confirm each process writes filterable identifiers
Confirm that each process writes the identifiers you will filter on, including the process type, the instance name and the execution or workflow identifier where n8n exposes it. Where a field is missing from the default output, decide whether to add it through configuration or through the shipper in the next step. Trigger one test execution that passes through a worker and a webhook, then search the local output for that execution. The check passes when one identifier leads you to the matching lines in each process.
Deploy a shipper that labels logs
Deploy a log shipper on each host or in the cluster that collects container output and attaches labels for process type, instance and environment. Grafana Alloy is Grafana's supported shipper for Loki, and Fluent Bit, Fluentd and the Docker logging driver can also send data to Loki. Choose the one that fits your platform team's existing tooling. The check passes when a query for each process label returns its own stream and no stream arrives without labels.
Choose and size the log backend
Choose between Grafana Loki, which indexes labels and keeps compressed chunks in object storage, and OpenSearch, which provides full-text indexing with Apache 2.0 licensing and a security plugin with audit logs. Loki's monolithic mode is documented for up to about 20 GB of logs per day, and its simple scalable mode is being deprecated, so confirm the deployment mode in the Loki deployment modes documentation before sizing. Load a representative day of logs into a test instance and measure storage growth. The check is a sizing estimate built from that measurement, not from a generic figure.
Verify a worker error appears in search
Create a test workflow that fails on purpose, route its execution to a worker, and record the time and error text. Search the backend by the worker label and the error text, then confirm the matching entry shows the same instance and process labels as the local output. Repeat the search from the account that operators will use, not only from an administrator account, to confirm access works. The step is done when the test error appears within the search window you expect and carries the correct labels.
Confirm retention on the backend
Set a retention period that matches your policy for operational and audit logs. In Loki, retention is applied by the compactor and is disabled by default, so logs are kept indefinitely until you enable it, and retention rules can be global, per tenant or per stream selector. Review the Loki retention documentation for the required settings. Confirm the period with your compliance owner before enabling deletion. The check passes when a test stream older than the retention period is removed after the compactor runs.
Loki or OpenSearch for n8n logs
Pick the log backend your security team already runs and can operate. Both options can collect n8n container output, but they make different demands. Grafana Loki indexes only labels and keeps compressed log chunks and its index in object storage, which keeps the index small and the query model simple. Loki's retention is disabled by default, so logs are kept indefinitely until you set retention_enabled and define rules for how long each stream is kept. Loki also has no built-in authentication layer, so you must place an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of it, and you must decide how tenants are separated if you turn on auth_enabled. Loki's simple scalable deployment mode is being deprecated and will be removed with the 4.0 release, so choose a mode you can keep on a supported path.
OpenSearch fits teams that need access control and audit trails built into the search tier. It is released under the Apache License, Version 2.0, and its FAQ does not describe any paid edition, so confirm the license terms with your legal team against the version you deploy. Its Security plugin provides role-based access control, document-level and field-level security, field masking, audit logs and TLS for node and client traffic, and it supports SAML, OpenID Connect and LDAP for sign-in. OpenSearch Dashboards derives from Kibana 7.10.2, so staff familiar with that interface will recognize it. Expect more cluster sizing and shard management work than Loki requires.
Confirm the choice with your security and operations teams before you write any shipping configuration. Ask which backend already has an approved hardening baseline, an on-call owner, backup procedures and audit evidence. Check whether your organization already requires a specific identity provider, retention period or log-access model, since those requirements usually settle the question faster than feature comparisons. Whichever backend you pick, the n8n side stays the same: the shipper reads container output, and the storage and access decisions sit with the team that will answer audit requests about n8n logs.
Limits to confirm before you commit to a log stack
Each limit below changes whether a log design holds up after go-live. Some depend on the n8n version you run, some on the Loki or OpenSearch release you install, and some on the edition and retention settings you choose. Confirm each one against your own environment before you commit to a stack.
Confirm n8n log settings for your version
The design depends on the log level, output and file settings your n8n version exposes, and on how each process type writes its logs. Before you write configuration, check the n8n release notes and configuration reference for the version you plan to run. Test the settings in a staging instance that matches production, including the main, worker and webhook processes, so you know which options actually take effect. If a setting you rely on is missing, decide now whether you will collect container output instead.
n8n release notesConfirm log streaming in your plan
Log streaming is included only in the n8n Business and Enterprise plans, according to n8n's pricing page. If your organization runs the Community edition or a lower paid plan, do not design around n8n's built-in streaming. Plan for container log collection with Grafana Alloy, Fluent Bit or the Docker logging driver instead. Confirm your edition before the design is approved, because changing the collection method later affects dashboards, alert rules and retention.
n8n pricingSimple scalable mode is being deprecated
Loki's documentation states that simple scalable deployment mode is being deprecated and will be removed with the Loki 4.0 release. A deployment built on that mode will need a migration before 4.0 arrives. If you expect a multi-year run, choose monolithic mode for smaller volumes or plan the microservices layout for larger ones, and confirm the current deprecation timeline on the Loki deployment modes page before you size the cluster.
Loki deployment modesLoki retention is off by default
Loki's compactor applies retention, but the setting is disabled by default, so logs are kept indefinitely until retention_enabled is set. Each retention rule must also cover at least 24 hours. Decide the retention period per tenant or per stream selector before go-live, set the compactor configuration explicitly, and verify that old chunks are actually deleted in a test environment. Storage growth from unbounded retention is often noticed only after the object store fills.
Plan OpenSearch maintenance windows
An OpenSearch version stays under maintenance until the next major version enters maintenance or one year passes, whichever is longer. During maintenance it receives bug fixes and security patches, but no new features. Plan which release line you will run, when you will apply patches, and how long your team can keep an older line before a forced major upgrade. Check the OpenSearch releases page for the current support status before you choose a version.
- Minimum maintenance period
- 1 year
Plan for the eight-week minor cadence
OpenSearch targets a new minor version about every eight weeks, and the most recent releases on its releases page were 3.8.0 on August 4, 2026 and 3.9.0 on September 29, 2026. Budget a recurring upgrade cycle for the cluster, rather than treating installation as a one-time task. Ask who will test each minor release against your dashboards, index templates and security roles, and who approves the change. Loki releases also need a regular review, so schedule both together.
- Minor release target
- 8 weeks
Check current Loki and OpenSearch versions
Release numbers change quickly, so the versions in any design document are only a starting point. The Loki GitHub releases page lists v3.7.8, published September 17, 2026, and the OpenSearch releases page lists its own current line. Before you install, confirm the exact version you will deploy, its support status and its published security fixes. Record the version in your change request so that later upgrades start from a known baseline.
Loki releases on GitHubQuestions teams ask before they hire help with n8n logging
How much effort does an n8n logging setup take, and what drives it?
Turning on n8n's own log settings is a small change, but the effort grows with everything around it. The main drivers are how many n8n processes you run (main, workers and webhook processors each write their own logs), which log destination you choose (files on disk, container stdout, or a shipper into Loki or OpenSearch), how many hosts and containers you operate, and how much structure the team needs in searches and dashboards. Retention rules, access control to the log store, and testing that logs still arrive after an upgrade add further work. Ask any provider to list each process, host and log store in writing before agreeing a quote, since the written scope sets the price.
Can our internal team set up n8n log shipping without a partner?
Yes, a team with container and log platform experience can usually do the basic work in-house. The n8n side is configuration: choosing a log level, output and file limits, and separating processes. The harder part is the log backend. Loki needs an object store, a compactor for retention, and an authenticating reverse proxy because it has no built-in authentication layer. OpenSearch needs TLS, role-based access and index lifecycle planning. Assess whether your team already runs these systems, who will own them after handover, and whether anyone has time to test failure cases such as a full disk or a stopped shipper before relying on the logs.
What access and information do we need to give a partner for logging work?
A partner needs enough access to change and verify the n8n deployment and the logging path. Expect to provide access to the hosts or Kubernetes clusters that run n8n, the container runtime or orchestration configuration, the cloud accounts or data center systems where object storage and the log backend will live, and the identity provider if the log UI or backend should use your single sign-on. You will also need to confirm where logs may be stored, which people may read them, and how long they must be kept. Agree on these in the written scope so access is limited to the systems named in it.
How long does a typical n8n log shipping rollout take, and what sets that time?
The duration depends on scope rather than on a fixed standard, so confirm it against the written plan. Time usually grows with the number of n8n processes, whether you ship from files or containers, the choice between Loki and OpenSearch, whether object storage and identity already exist, and how many approval steps your change process requires. Environments with several n8n instances, strict access rules or air-gapped networks typically need more testing time. Ask for the proposed phases, what each phase verifies, and which dependencies on your side could delay it.
Does n8n log streaming make a separate log shipper unnecessary?
Not always. According to n8n's pricing page, log streaming is included only in the Business and Enterprise plans, so Community edition users cannot rely on it. Even on a paid plan, log streaming covers workflow-level events, while container logs, process logs from workers and webhook processors, and host-level logs still need a collector such as Grafana Alloy, Fluent Bit or the Docker logging driver. Confirm your edition and what the streaming feature sends before deciding that no shipper is needed. Your licensing review should settle which edition you hold.
What recurring work follows a logging rollout?
Logging is an ongoing service, not a one-time configuration. Recurring work includes enforcing retention, which for Loki runs through the compactor and is disabled by default until you enable it, so someone must set and review the rules. It also includes upgrading the backend: Loki and OpenSearch both release new versions regularly, and OpenSearch versions move through maintenance and end-of-life dates you must track. Your team will also review log volume and disk or object store growth, rotate credentials, check that shippers still run after n8n upgrades, and review access. Ask any provider whether these tasks are included in handover or offered as a retainer.
Should we choose Loki or OpenSearch for n8n logs?
Choose based on your search needs, operating skills and licensing preferences. Loki indexes labels rather than full log text, stores chunks and indexes in object storage, and is licensed under AGPLv3, which your legal team should review against your distribution plans. OpenSearch is released under the Apache License, Version 2.0, and offers role-based access, audit logs and field-level security through its Security plugin. Consider which team will query logs, whether you need full-text search, and how much cluster operation you can support. A partner can compare both against your environment, and the final quote follows the written scope.
How DeployOpen scopes and delivers n8n logging
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, including n8n logging for main, worker and webhook processes. Work starts from a written scope that covers which editions, log destinations and retention rules apply to your environment.
How we scope
- Confirm your n8n edition and whether log streaming is available to you before choosing a log path.
- Record which processes write logs (main, workers, webhook processors) and where each one runs.
- Agree log levels, file size and count limits, and the retention period your compliance team requires.
How we build
- Configure n8n log levels and outputs, then test that each process writes to its intended destination.
- Set up a log shipper and a Loki or OpenSearch store on infrastructure you control, sized to your agreed volume.
- Verify that container logs arrive with labels that separate main, worker and webhook processes.
How we hand over
- Deliver configuration files, pipeline settings and a runbook covering rotation, retention and access controls.
- Document the access model for log viewers, including authentication in front of Loki or OpenSearch.
- Walk your operations team through search queries, failure checks and the steps for changing settings.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer for your logging stack.
- Support can cover log store upgrades and n8n version changes that affect log formats or output settings.

