Managing Zammad logs

Managing Zammad logs starts with knowing where each install type writes its output and how long it is kept. This page covers retention on package, container and source installs, and which events to forward to a SIEM.

On this page

Managing Zammad logs starts with knowing where each install writes

Where a self-hosted Zammad writes its logs depends on how it was installed, so the first step is mapping each installation to its log locations before configuring anything else. A helpdesk holds customer names, email bodies and attachments, and that data can appear in application logs during troubleshooting or in web server logs during a security review. Three decisions follow: how long logs stay on the system, who can read them, and whether they go to a SIEM. Retention comes first because it sets the storage you must size and the window you can investigate. Forwarding to a SIEM is a separate choice that adds cost and a second place where personal data is copied.

The install method sets the mechanics. On a package install, Zammad and the web server write files to the host, and the logrotate configuration shipped with the package controls rotation and how long old files are kept. Confirm the rotation period in that file for your version. On Docker Compose, application output reaches the container log only when the container is set to log to standard output, which is the purpose of the RAILS_LOG_TO_STDOUT setting, so check it in your Compose file and confirm the logging driver's size and rotation limits. On Kubernetes, Zammad support covers only the application, so node-level collection, cluster retention and log shipping belong to your platform team. On a source install, nothing rotates for you, so you add rotation and retention yourself.

Retention and SIEM forwarding are separate decisions, and both should be written down before go-live. Set local retention from your policy and your incident response needs, then confirm that the storage holds those files for the full period. For a SIEM, start with a narrow set, such as authentication events, administrator and permission changes, and application errors, and confirm which of these your version emits and at which log level. Verbose levels may record ticket content, so treat forwarded logs as personal data in scope for your privacy review. Your first action is an inventory: for each install, record the log locations, rotation settings, retention period and log level, and check them against the version you run.

Log handling options by install type and when each fits

This table compares where Zammad writes logs on package, Docker Compose, Kubernetes and source installs, who rotates or purges them, and how well each suits a central collector. Read each row before choosing a shipping method, because the log destination and rotation owner decide whether a collector sees every file. The main takeaway is that the package install ships with a logrotate policy, while the other install types need you to confirm retention and design collection yourself.

Install typeWhere logs landWho rotates or purgesFit for a central collector
Package installLog files on the host under the Zammad application directory (confirm paths for your release)The logrotate policy shipped with the package. Confirm the rotation period and purge behavior in that file.Good. A file-based shipper can read the rotated files, provided it handles rotation correctly.
Docker ComposeContainer stdout and stderr, read by the Docker logging driver, plus any files written inside volumesThe Docker logging driver and host settings. Confirm which Zammad logs go to stdout and which stay in files.Good when your collector reads Docker logs. Check that volume-based log files are shipped separately.
KubernetesContainer stdout collected by the node runtime and your cluster logging stackYour cluster logging stack and its retention settings. Zammad support covers only the application.Depends on the cluster pipeline you design and operate. Plan collection, parsing and retention before go-live.
Source installLog files in the directory set during installation, with no packaged rotation assumedYou. Confirm whether any rotation exists and add it, because unrotated logs can grow until the disk fills.Workable, but you must add rotation and shipping yourself before a collector reads reliable files.
Retention defaultDepends on the install type and the rotation or driver settings in useConfirm the default period for your release and install type, then record it in your log policy.Set the forwarding window and the local retention together so local copies never disappear before shipping.

How retention and output differ between package, container and source installs

Package installs ship a logrotate configuration for Zammad's application logs. The default keeps rotated files for 14 days, so older application logs are removed without any action from your team. Confirm the file name, rotation schedule and retention in the rotation config installed with your package, because a package update or a local edit can change those values.

  • Rotation runs through logrotate: make sure the scheduler that drives logrotate is active on the host, since rotation does not happen without it.
  • The 14-day default: under the shipped configuration, rotated application logs are kept for 14 days and older files are removed on a later rotation.
  • Local edits: if your team changed the retention values, those values apply instead of the default, so record them in your runbook.
  • Forwarding is separate: logrotate only manages files on the host, so a SIEM receives events only if an agent reads the files before they are removed.

Check the retention value on a test host and confirm that logrotate reports the Zammad log files as managed.

How Zammad logs move from the application to a collector and SIEM

The path starts in three places on the Zammad host or cluster: the application and background worker logs, the reverse proxy access log, and the container or host log driver. A shipper such as Grafana Alloy or Fluent Bit reads these sources and forwards them across the boundary between your network and the log platform, to a central store such as Graylog or Loki. Retention is applied at each hop: local logrotate or container log limits on the Zammad host, index or chunk retention in the central store, and a separate policy in the SIEM. Check each hop separately, because a log can be rotated away on the host before it is ever shipped.

Zammad log sources, shipper, central store and SIEM, with the trust boundary marked.

Forwarding Zammad logs to a SIEM: what to send and what to keep local

Zammad produces several kinds of records that answer different questions: who signed in, who changed configuration, why mail stopped, and what reached the application. Security and operations teams usually need a subset of these in a central system, and the rest is better kept local for troubleshooting. Review each source for volume and for personal data before you forward it.

Authentication and login outcomes

Successful and failed sign-ins, from both agents and customers, show credential guessing, account takeover attempts and misconfigured single sign-on. Forward the login outcome and the account identifier, and confirm with your own test logins which fields actually appear in the log for your installed version. Check whether usernames or email addresses in these lines are personal data under your policy, and whether the same events are also visible through your identity provider, which may be the better primary record.

Administrator and configuration changes

Changes to roles, groups, channels, integrations and system settings matter most when they are made outside normal change windows. Ask your team to list which administrator actions Zammad records in your version, because the logging for settings changes is not uniform across features. Forward these entries with the acting user and a timestamp, and review whether any changed values, such as mailbox passwords or tokens, could be copied into the log.

Email processing failures

Failed inbound and outbound mail is an operational signal, since a stopped mailbox means customer requests go unanswered, and it can also show a spoofing or flooding pattern. Forward error lines and their counts, not full message bodies or attachments. Message content often holds customer personal data, so confirm what your configuration writes to the log before you route it to a shared platform.

API token use

Requests made with API tokens run without an interactive login, so an exposed token can read or change tickets silently. Forward the token name or owner, the source address and the endpoint where your version logs them, and alert on use from unexpected hosts. Never log or forward the token value itself. Confirm with your version's documentation which token details are recorded before you write detection rules against them.

Reverse proxy access records

The Nginx or Apache access log shows client addresses, request paths and response codes before Zammad sees the request, which helps when the application log is silent about blocked or malformed traffic. Forward status codes, paths and source addresses, and decide whether query strings are kept, since they can carry tokens or search terms. Retain these records under the same policy as application logs, and check that the proxy records the real client address behind any load balancer.

Application errors and exceptions

Unhandled exceptions and background job failures point to faults, misconfiguration or abuse, and they are the first thing support engineers need during an incident. Forward error level entries and stack trace summaries to the SIEM, but treat them as sensitive because they can include request parameters or record content. Keep verbose debug output local, and agree with your operations team who gets access to the full traces.

Choosing a log platform: Graylog or Loki for Zammad output

The decision is whether Zammad's logs, once shipped off the host, land in Graylog Open or in Grafana Loki. Both can receive what a Zammad host produces, but they differ in how they ingest, index, retain and authenticate data, and in what they need underneath them. Graylog Open ingests over inputs such as syslog, GELF and Beats, routes messages through streams and processing pipelines, and rotates indices by message count, size or time, with retention that deletes the oldest indices. It depends on MongoDB for configuration and metadata and on a Graylog Data Node or self-managed OpenSearch for storage. For sizing, the Graylog architecture guidance is daily ingest multiplied by retention days multiplied by 120 percent, plus a message journal of 3 to 5 times daily ingest on SSDs. Estimate your Zammad daily volume from a real week of logs before you size anything.

Loki takes a different path. It indexes labels rather than full log text and stores compressed chunks and its index in object storage. Its documentation lists three deployment modes: monolithic (up to about 20 GB of logs per day), simple scalable, which the docs say is being deprecated and removed with Loki 4.0, and microservices for very large clusters, so a new build should plan for monolithic or microservices. Retention is disabled by default, so logs are kept indefinitely until retention_enabled is set in the compactor. Loki has no built-in authentication, so an authenticating reverse proxy must sit in front of it, and Grafana Alloy is Grafana's supported shipper. Confirm that your team can operate a reverse proxy, an object store and compactor settings before choosing it.

The licenses differ and the difference needs review. Graylog Open is licensed under the Server Side Public License version 1 (SSPL-1.0), which is not an OSI-approved license, while Loki is licensed under AGPLv3. Your legal team should confirm whether SSPL-1.0 terms are acceptable for your hosting and internal use, and whether AGPLv3 obligations apply to any modifications you make. DeployOpen does not give license advice. Price also differs: Graylog Open has no license fee, while Graylog Enterprise and Graylog Security are paid, and both Loki and Graylog Open still need compute, storage and staff time that recur every year.

Setting up log retention and forwarding in order

This sequence moves Zammad logs from scattered files and container output to a documented retention policy and a central store that the security team can search. Each step ends with a check, so you know the log path is working before you rely on it for an investigation.

  1. Inventory install type and log locations

    Identify whether Zammad runs from a package, Docker Compose, Kubernetes or a source install, and record where each component writes logs for your installed version. Package installs rotate logs through logrotate, and the default retention on package installs is 14 days. Container deployments usually write to stdout when RAILS_LOG_TO_STDOUT is set, and source installs keep files until someone removes them. Done when you have a written list of every log source, its path or stream, and its current rotation behavior, confirmed against the documentation for your version.

  2. Set retention on the host or driver

    Apply retention where the logs are written. On package installs, review the logrotate configuration and confirm the rotation period you want, since the default may not match your policy. On source installs, add a rotation or purge job because nothing removes old files by default. On containers, set retention in the Docker logging driver or in the platform's log store. Check: run logrotate -d against the Zammad configuration to confirm the expected rotation, then confirm old files are removed after a test rotation.

  3. Decide which logs stay local

    Split the sources into two groups. Keep verbose debug output and high-volume request logs local if they serve only troubleshooting. Forward authentication events, administrator and role changes, API token use, failed logins and mail processing errors to the SIEM, because these support investigations. Confirm with your security team which events they need and how long each source must be kept. Check: a written table lists each source, its destination and its retention owner, and the security team has signed it off.

  4. Deploy the shipper with a dedicated account

    Install the shipper your central platform supports, such as an agent that tails files or reads container output. Run it under a dedicated service account with read-only access to the log paths, and do not reuse the Zammad application or database account. Set the destination endpoint and credentials in the shipper configuration, and keep the secret in your secret manager. Check: the service account can read the log files and cannot write to the Zammad application directory.

  5. Send a test event and confirm arrival

    Generate a known event in Zammad, such as a failed login using a dedicated test account, and confirm it appears in the central store with the expected source, host and timestamp. If you run containers, repeat the check with one container log line. Then confirm that the fields you need for searches, such as user and source address, were parsed. Check: search for the test marker in the SIEM and save the query so the team can reuse it during investigations.

  6. Size and set central store retention

    Size the central store before enabling full forwarding. Graylog's system architecture guidance advises calculating log storage as daily ingest multiplied by retention days, multiplied by 120 percent, and sizing the message journal at 3 to 5 times daily ingest on SSDs. Use the daily volume you observed during the test to estimate ingest, then set index rotation or retention rules to match. Check: the calculated storage fits the allocated capacity with headroom, and the retention rule deletes the oldest data as configured.

  7. Schedule a recurring log review

    Put a recurring review on the calendar with the owners named in your inventory. At each review, confirm that rotation still matches the installed version after upgrades, that new log sources are in the inventory, that forwarding has no gaps, and that storage use stays within the planned capacity. Re-run the test event after every Zammad upgrade or shipper change. Check: the review record lists the date, attendees, findings and next review date, and the saved test search still returns the event.

Security and privacy risks in Zammad log data

Zammad logs can capture what the helpdesk handles: customer messages, personal data, and the credentials that move between the browser, the proxy and the application. The cards below pair each risk with a control to apply and a check to run before logs are forwarded or retained. Confirm each Zammad setting against your installed version before relying on it.

Ticket content in log lines

Application and request logs can record parameters, payloads or error context that include ticket bodies, names, email addresses or phone numbers. Once a log line leaves the Zammad host, every reader of the central store can see that content. Apply redaction or field filtering at the collector, and sample a week of raw output to find which fields actually appear. Confirm with the Zammad documentation which log levels include request bodies on your version.

Credentials in request logs

Session cookies, API tokens, webhook secrets and OAuth tokens can end up in request logs or proxy access logs if query strings or headers are written out in full. A leaked token in a log store gives the same access as the original credential. Strip authorization headers and token parameters at the reverse proxy and the shipper, and rotate any token that has appeared in a log copy.

Unauthenticated central store

A log store reachable without authentication exposes every line it holds, often including the data the helpdesk was built to protect. This applies to Loki, Graylog and any dashboard in front of them. Loki has no built-in authentication layer, so the documentation calls for an authenticating reverse proxy in front of it. Put the store on a private network and require SSO or a proxy login for every read path.

Loki authentication docs

Weak access on the collector

The shipper that reads Zammad logs and sends them onward usually runs with broad file permissions and holds credentials for the log store. Compromise of the collector exposes both the logs and the path into the store. Run it under its own service account, restrict read access to the Zammad log directory, and keep its store credentials in a secrets store rather than in plain configuration files.

Retention beyond the data policy

Logs that contain personal data should not outlive the purpose they serve. Package installs rotate local files on a schedule, but a central store may keep copies far longer unless retention is set on purpose. Loki retention is disabled by default, so logs are kept indefinitely until it is enabled. Write the retention period into your data policy, configure it on each store, and test that old data is deleted.

Loki default retention
Disabled
Loki retention docs

Log tampering and gaps

An attacker who gains access to a host may edit or delete local log files to hide activity. Log integrity depends on forwarding logs to a store the host cannot rewrite, and on checking that forwarding has not silently stopped. Schedule a review that compares host-side and store-side counts for the same window, restrict delete rights on the store to a small admin group, and alert when a source goes quiet.

Limits to confirm in your environment before you rely on the logs

Before anyone depends on Zammad logs for an investigation or an audit trail, the implementation team should confirm the log behavior of the exact release and installation method in use. Log file names, paths, rotation and retention are set by the package, image or source tree, so they must be read from the installed system rather than assumed from this page. Check the log directory on the host, the logrotate configuration that governs it, and the number of days files are kept. Then record the result in the runbook so the next upgrade can be compared against it. The same check applies to containers: confirm whether the image in your release writes application logs to stdout, which is the setting that RAILS_LOG_TO_STDOUT controls, and confirm that your collector captures that stream before it is lost on container restart.

The second group of checks concerns content and volume. Confirm which event fields Zammad emits for the records you intend to forward, such as authentication, administrative changes and ticket access, and whether each field is present in your release and useful to your SIEM. Do not treat a log line as proof of an action until a test event has been traced end to end. Estimate the daily log volume from a pilot period on your own workload, since ingest depends on agent count, mailbox traffic and log level, and then size the disk on the collector and in the SIEM for the retention period your policy requires. Finally, confirm the license terms of any log platform you choose, because they govern whether you can run it internally, what you must disclose and what support you receive. A proof of concept that passes these checks gives the team evidence it can present to auditors; the checks themselves are the implementation team's work, not guarantees this page makes.

Questions buyers ask about Zammad log management

How much effort does a Zammad log setup take?

Effort depends mainly on how Zammad was installed, how much log volume reaches the collector, and whether logs go to a SIEM with parsing and alerting. A package install writes to files that rotate on a schedule, so the work centers on deciding what to forward and where retention lives. A container install sends output to stdout, so the work shifts to collector configuration and parsing. Volume and SIEM integration add the largest variables, because field mapping, index sizing and alert rules usually take longer than the first forwarder. Ask for a scope that lists the install type, the number of Zammad hosts, the destination platform and the alerts required. A quote and timeline should follow from that written scope, since no single effort figure fits every environment.

Can our internal team set up Zammad logging alone?

Often yes, if your team already runs a log platform and knows how Zammad is laid out on disk or in containers. The core work is ordinary Linux and log pipeline engineering: locating the log files or container output, configuring a shipper, mapping fields and writing retention rules. The gaps usually sit in Zammad specifics, such as which files carry web server, application and background job output, and in deciding which security events belong in the SIEM. Teams without an operating log platform, or without someone who has run a SIEM, often spend more time on the destination than on the source. A short internal pilot against one test instance will show whether your team can finish the rest without outside help.

What does a Zammad log project need from our side?

Plan on providing five things: read access to the Zammad hosts or containers, a destination log platform you already run or have approved, a written retention policy with periods for each log type, a named owner who signs off on what leaves the host, and a change window for restarting Zammad after configuration changes. Add the compliance requirements the logs must support, such as the events your auditors expect to see. Confirm whether the log platform sits inside your environment. DeployOpen works inside the infrastructure you control, so the destination, its storage and its access controls should be decided before work starts. The named owner matters because tickets can contain personal data, and that decision should not rest with the implementer alone.

Does Zammad support cover log forwarding?

Confirm this in writing before you rely on it. Zammad publishes self-hosted support subscriptions with response times of 6 hours (Business), 4 hours (Enterprise) and 2 hours (Corporation), according to the Zammad pricing page. That page lists response times only and does not say which requests the subscription covers. Ask Zammad whether log forwarding, collector setup and SIEM field mapping fall inside the support terms, and how a log problem is classified: as an application defect, a configuration question or something outside scope. Record the answer in your support agreement. Where support does not cover the forwarding layer, the work falls to your team or to an implementation partner under a separate written scope.

Does Graylog Open have any costs?

Graylog Open has no license fee. The Graylog pricing page lists Open as free, with no volume limits and community support. The costs come from the infrastructure it runs on, the staff who operate it, and any paid tier you choose. Graylog Enterprise starts at 15,000 US dollars per year and Graylog Security at 18,000 US dollars per year, according to that page. Both have a minimum of 10 GB per day or 100 Graylog Compute Units and are licensed on processed data, with no per-user or per-device fees. Storage is the other recurring cost. Graylog advises sizing log storage as daily ingest times retention days times 120 percent, so ask for a sizing that states daily ingest and retention before comparing totals.

How long does a first working Zammad logging setup take?

No supplied figure gives a duration for this, and the answer depends on scope. The main drivers are the install type, the number of hosts, the volume reaching the collector, whether the SIEM is already running, and how many log sources and alerts must be built. A minimal setup that forwards application logs from one test instance to an existing platform is far smaller than forwarding web server, background job and mail logs from several production hosts with parsing and alerts. Ask for a timeline in the written scope, with milestones for source configuration, destination mapping, test events and a retention review. Also schedule a change window, because collector and Zammad configuration changes can require a restart.

Which Zammad logs should we send to a SIEM first?

Start with the events that show who signed in, who changed access and what failed. In practice that means authentication events from the application and any single sign-on integration, administrator and role changes, configuration changes, failed background jobs and mail processing errors, and access and error logs from the reverse proxy. Application logs can include customer content from tickets, so filter fields on the host before they leave and confirm the classification with your privacy owner. Send timestamps in one time zone and tag each event with its source host. Keep the stream list in the written scope so the SIEM team can review and approve each source.

How DeployOpen works on this

DeployOpen plans log handling for Zammad as part of the platform in your own infrastructure, covering where application logs are written, how they rotate or get purged, and what reaches your SIEM. The work is scoped in writing before it starts, so your security and operations teams know exactly what is delivered.

How we scope

  • Confirm whether your Zammad runs from a package, Docker Compose, Kubernetes or a source install, since log behavior differs by method.
  • Agree which log sources, such as the Rails application log and web server logs, are in scope for collection and retention.
  • Record the SIEM or log platform you use, its ingestion requirements, and who owns retention and access decisions.

How we build

  • Configure log rotation or purging for your install method, or set container output to stdout for your log collector.
  • Set up forwarding of agreed security-relevant events to your SIEM and check that fields arrive as expected.
  • Test rotation and forwarding on a non-production copy before changing the production environment.

How we hand over

  • Deliver a written runbook listing log locations, retention settings, forwarding configuration and the owner of each setting.
  • Document the restore or reconfiguration steps needed after an upgrade or a move to a new host.
  • Walk your operations and security teams through the setup and the checks they should run after future changes.

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 Zammad logging setup.
  • Ask for a written quote based on your scope; DeployOpen does not publish a price list.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.