Redmine log files and log rotation

Redmine writes its request and error history to a production log that grows without limit unless you rotate it. This page explains log levels, rotation options, central shipping and incident reading.

On this page

Redmine log files and log rotation: what the production log holds and when you need to manage it

A Redmine server writing to log/production.log with no rotation configured will keep growing until someone notices, and the decision you face is whether to rotate that file on the host or ship its contents to a central logging platform. Start by confirming the log path in your install, since the location depends on how Redmine was deployed (Puma on a Linux host, Docker, or another layout) and on the application directory you chose. Check the file size, the disk it sits on, and whether any other process writes to the same path before you change anything.

The production log records each HTTP request Redmine handles, along with the controller and action invoked, the response status, timing, and the user and client details Rails writes by default, plus errors and warnings raised while the application runs. That makes it the first place to look during incident response, when a user reports failed logins, a 500 error, or a slow page, and during audits that ask who accessed a project and when. It also grows with traffic, so disk pressure is the most common trigger for acting. Teams should know which events they must retain, for how long, and who can read them, because the same file can hold personal data such as usernames, IP addresses and query parameters.

This page covers four decisions in order: the log level that matches your needs, rotation with logrotate or Rails settings, custom loggers for specific components, and shipping logs to a central platform such as Graylog or Loki. Local rotation is usually enough for a single server with short retention. Central logging becomes worth planning when several servers feed one investigation process, when retention must be longer or independently controlled, or when access to logs must be separated from access to the server. Confirm with your security and compliance teams what they need to keep and where, before you pick a rotation schedule.

Which log level and rotation method fits your server

The log level decides how much Redmine writes to its production log. Higher verbosity helps when you are chasing a fault, but it fills disks faster and can bury the lines that matter. Most teams keep production at a moderate level and raise it for a bounded window during an incident. Set the level in the environment file your Redmine version loads for production, and confirm the exact file name and key in the Redmine installation guide for your release.

  • Informational level for steady state: Keeps request summaries and errors without per-query detail, which suits most long-running servers.
  • Debug only for a window: Turn on debug while reproducing a problem, then return the level to its normal setting so the log does not grow unchecked.
  • Higher levels lose context: Setting warn or error removes the request lines around a failure, so you may see an exception with no record of what led to it.
  • Sensitive data in verbose output: Confirm what your Rails release records at each level, including parameters and SQL, before enabling verbose logging on a server that handles personal data.
  • Restart behavior: Confirm whether a level change takes effect only after an application restart in your deployment.

Check the level key, its default value and the restart behavior against the Redmine installation guide and the Rails release your Redmine version uses.

Log rotation options and when each fits

This table compares the main ways to manage Redmine's production log, from the default level to logrotate, Rails settings, component-level loggers and forwarding to a central collector. Read each row for when the option fits, the main risk it carries and what to check on your own server before relying on it. Most teams combine a rotation method on the host with forwarding for incident search.

OptionWhen it fitsMain riskWhat to check
Default log level and single production logSmall internal instances where the team reads the log directly on the hostFile grows without limit if nothing rotates it, and verbose settings fill the diskCurrent log level in the production environment config, free space on the log volume, and file size growth over a week
logrotate with copytruncateRedmine writes to a file the process keeps open and cannot be signaled to reopenLines written between copy and truncate can be lost or duplicatedWhether the Puma or web process reopens files on signal, and that the copy runs in the same window as truncation
logrotate with create and reopenThe app or server can reopen its log file after rotationWrong ownership or permissions on the new file stop writes silentlyOwner and mode of the new file, the postrotate action that reopens the file, and a test rotation on a staging copy
Rails logger rotation settingsYou want the application itself to manage files without an external toolRotation behavior differs by Rails and Redmine version, so settings may not apply after an upgradeLogger configuration supplied with your Redmine release, and whether rotated files appear after a forced test
Custom logger levels for specific componentsYou need more detail for one area, such as mail delivery or an integration, during a short investigationDebug output for a component can expose personal data and inflate the log quicklyWhich component logs at which level, who can read the output, and a plan to reset the level afterward
Forwarding to a central collectorSeveral Redmine hosts or a security team need one place to search and alert on eventsLogs can be lost in transit, and the collector may hold personal data under its own retention rulesShipper buffering and restart behavior, collector retention settings, access control on the collector, and whether timestamps match the server clock
Local rotation plus forwarding togetherRegulated or audited environments that need both host files and a searchable central storeTwo retention policies drift apart and the team assumes one covers the otherWritten retention for host files and the collector separately, and a restore or search test for an old event

How to set up log rotation for a production Redmine

This sequence confirms where Redmine writes its production log, sets a sensible log level, and configures logrotate so the log stays bounded without interrupting the application. Each step ends with a check that proves the result before the next change is made.

  1. Locate the production log and confirm the Rails version

    The administrator logs into the server that runs Redmine and confirms the installed Redmine and Rails versions from the application's Gemfile.lock or the administration information page. Redmine 7.0 runs on Rails 8.1, so the Rails version tells you which logging defaults apply to your install. Next, the administrator finds the production log, which normally sits in the log directory of the Redmine application path, and records its exact location and owner. The step is complete when the team has a written note of the file path, the owning user, the Redmine version and the Rails version, and a recent entry in the file confirms that the application is writing to it.

  2. Set the production log level

    The administrator reviews the production environment configuration and sets the log level deliberately, most often to info for routine operation, with debug reserved for short troubleshooting windows. Debug output can grow quickly and may include request parameters, so the team should confirm with its compliance owner what may appear in logs before changing defaults. The change is made in the environment configuration that the Redmine application reads at startup, and the application is restarted in the normal way for that deployment. The step is complete when a request to a Redmine page produces entries at the chosen level and no debug lines appear in normal operation.

  3. Write the logrotate configuration with the correct owner

    The administrator creates a logrotate file under the system logrotate configuration directory that names the production log path. The file sets the rotation interval, how many rotated copies to keep, and compression, and it declares the owner and group that the application process uses so that newly created files stay writable by Redmine. Puma or Passenger determines the right handling: the usual approach with copytruncate keeps the same file handle open, while a reopen signal or restart is needed if the process holds the original file. The administrator confirms which behavior the chosen server and process manager require before relying on it. The step is complete when the configuration file is saved, readable by root, and passes a syntax check with no errors reported.

  4. Test the rotation with a dry run

    The administrator runs logrotate in debug mode against the new configuration, which reports what it would rotate without changing any file. The output should name the Redmine production log, show the chosen interval and compression, and list no unexpected files. If the output reports a missing owner, a permissions problem or an unexpected path, the team corrects the configuration and repeats the dry run until the output matches the plan. The step is complete when the dry run output matches the intended settings and the administrator has recorded the command and its result in the change record.

  5. Force one rotation and confirm the application keeps writing

    The administrator runs logrotate once in forced mode for the Redmine log only, so the rotation happens on demand rather than waiting for the schedule. Immediately afterward, the administrator loads a Redmine page and confirms that a new entry appears in the active log file, which proves the application still holds a writable handle to the correct file. If the entries go to the rotated copy or stop entirely, the team switches to the process reopen approach for Puma or Passenger and repeats the test. The step is complete when a new request is logged in the active file and the rotated copy contains the earlier entries.

  6. Verify compression and retention of rotated files

    The administrator checks the log directory after the forced rotation and confirms that the rotated file carries the expected name pattern and compression suffix, and that the number of retained copies matches the configuration. The administrator also opens the compressed file to confirm that its contents are readable and that the timestamps are correct. Retention should be agreed with the team that owns incident response and any log-retention requirement, since rotation alone does not decide how long records are kept. The step is complete when the compressed copy decompresses cleanly, the file count is within the configured limit, and the findings are recorded.

  7. Confirm the schedule and alert on failures

    The administrator confirms that logrotate runs on the schedule set by the operating system, such as the daily cron or systemd timer the distribution provides, and checks the logrotate status file or system journal for the last run. The team adds the Redmine log to its normal monitoring so that a missing rotation, a full disk or a stopped application produces a visible alert. The step is complete when the scheduled run has been observed at least once without error and the monitoring check is confirmed to fire in a controlled test.

How Redmine logs flow from the app to rotation and central logging

The flow starts with Redmine and Puma writing to the production log on the app host. logrotate rotates that local file, and a log shipping agent reads the files or receives forwarded entries before sending them across the trust boundary to the central platform. Check at each hand-off that the agent keeps its position through rotation, that no sensitive fields leak into shipped entries, and that access to the central store is limited to the teams that need it.

Log path from Redmine to rotation and central storage, with the trust boundary marked.

When to ship Redmine logs to a central platform such as Graylog or Loki

Ship Redmine logs to a central platform when the local log files cannot meet the retention, correlation or access requirements of your organization. A local production log lives on the Redmine host, so it disappears with that host, competes with the application for disk, and is visible only to people who can log in to the server. Central logging separates retention from the application, lets you correlate Redmine events with reverse proxy, database and identity provider logs during an incident, and gives auditors read access without shell access to production. Decide this before go-live, because the shipper, storage and access model are harder to add once the log history is already in use.

Graylog suits teams that want a managed search and dashboard product with clear input and index controls. Graylog Open ingests syslog, GELF and Beats inputs, routes messages through streams and pipelines, and rotates indices by message count, size or time, deleting the oldest indices under its retention setting. For medium to large deployments, the supplied guidance recommends three Graylog and MongoDB nodes, three Data Nodes on their own cluster and a load balancer, and sizes storage as daily ingest times retention days times 120 percent. Graylog Open is licensed under SSPL-1.0, which is not an OSI-approved license, so check that licence with your legal team. Confirm current pricing and the Enterprise or Security feature gaps on the Graylog pricing page before assuming the open edition covers your needs.

Grafana Loki suits teams that already run Grafana and want logs in object storage. Loki has no built-in authentication layer, so you must place an authenticating reverse proxy in front of it, and multi-tenancy depends on auth_enabled and the X-Scope-OrgID header. Retention is disabled by default, so logs are kept indefinitely until you set retention_enabled on the compactor, and this is the setting most often forgotten. Loki is licensed under AGPLv3, and its simple scalable deployment mode is being deprecated, so plan for the monolithic or microservices modes instead. Whichever platform you choose, pick and test the shipper (for example Grafana Alloy, Fluent Bit or Promtail's successors) against a sample of real Redmine production log lines, and budget for the storage, compute and staff time that a self-hosted platform recurs.

What to look for in Redmine logs during an incident

During an incident, the production log is often the fastest way to separate a Redmine fault from a user or network problem. The patterns below point to different causes, so read each one alongside deployment changes, plugin updates and the time the problem started.

Repeated authentication and API key failures

Bursts of failed sign-ins for one account, or many failed requests from one address using an API key, suggest either a password guessing attempt or a broken client that keeps retrying with an old key. Check the source address, the user or key involved, and whether the failures followed a password policy change, an LDAP outage or a key rotation. Compare the timestamps with your reverse proxy and firewall logs so you can see whether the traffic reached Redmine at all. Confirm the exact message text your release writes before building alerts on it.

500 errors after an upgrade or plugin change

A new run of ERROR lines with a stack trace that begins shortly after a deployment usually points to a migration gap, an incompatible plugin or a missing asset step. Note the first failing request, the exception class and the file named at the top of the trace, then check whether the same path fails on a clean test copy. Correlate the start time with the upgrade record and the plugin list. Do not restart repeatedly before capturing the first trace, because later errors often repeat the same cause.

Slow request timings

Rails writes the duration and database time for each request, so a sudden rise in total time across many pages points to shared resources such as the database, the application server or a storage path. A slowdown limited to one controller or one project often points to a heavy plugin, a large repository view or an unusual query. Compare the slow requests with the time of day, with scheduled maintenance tasks and with repository fetches. Use the timings as evidence before changing server settings.

Mail and background job errors

Errors from the mail delivery path or from background workers often appear long after the triggering action, so they are easy to miss in a web-only view. Look for SMTP connection failures, authentication rejections and jobs that repeat the same exception. Correlate these with notification gaps reported by users and with changes to the mail server, certificates or the job queue configuration. Keep the worker logs separate from the web log so the source of each failure stays clear.

File upload and attachment errors

Failed uploads, missing attachments or permission errors when opening files usually point to storage, disk space or file ownership problems on the attachment directory. Check whether the failures started after a disk fill, a mount change or a restore, and whether the affected files exist on disk. A pattern that touches only large files may indicate a proxy or application size limit. Record the file names and sizes involved, because they help separate storage faults from client-side upload issues.

Unexpected administrative actions

Changes to users, roles, projects, workflows or global settings made outside a planned change window are an important signal, especially when they coincide with a sign-in from an unfamiliar address. Redmine's own journal and the web log together help establish who acted and when. Correlate these events with privileged sign-ins, API activity and any scheduled jobs that might have made the change. Confirm which of these events your installation records by default, and forward the relevant records to a central store before rotation removes them.

Questions buyers ask about Redmine log management

How much effort does local log rotation take compared with a central logging platform?

Local rotation with logrotate or Rails settings is a small, one-time configuration task on each Redmine host, and it recurs only when the host, paths or retention rules change. A central platform is a separate system to deploy, size, secure and patch, so its effort is larger and continues after go-live. The difference comes from what you need: local rotation keeps files on the server for a limited period, while a central platform adds search across hosts, alert rules, access control on log data and retention managed outside the application server. Ask whether your incident process needs cross-host correlation before choosing.

Can our in-house team set up Redmine log rotation without outside help?

Most teams that already run Linux services can configure logrotate for Redmine's production log, set the log level and confirm that the application reopens its log file after rotation. The harder part is deciding what to keep, for how long, and who may read it. Teams without a platform engineer usually find the central shipping and alerting work the most demanding, because it involves network paths, parsing, retention tiers and failure monitoring. Check whether your staff have time to test rotation under load and to restore a log archive when an investigation needs one.

What do we need to provide before log management work can start?

The work needs four inputs. First, read access to the Redmine hosts, the application and web server log paths, and the current logrotate or systemd configuration. Second, host permissions to change log settings and restart the service in a change window. Third, a written retention policy that states how long application, access and security events must be kept and who may read them. Fourth, a decision on the central platform, including where it runs, whether it is self-hosted, and who owns its storage and access. If the platform decision is open, the scope should cover the option study as its own deliverable.

What drives the cost of Redmine log management?

The main cost components are the people doing the work, the hosting for any central platform, the storage it needs and the licensing tier if you choose a commercial edition. Local rotation costs little beyond the hours to configure and test it. A central platform adds recurring costs for compute, disk, backup of configuration and index data, and the staff time to maintain it. Graylog Open is free with no volume limits and community support, according to the Graylog pricing page, while Graylog Enterprise starts at 15,000 US dollars per year and Graylog Security at 18,000 US dollars per year, each with a minimum of 10 GB per day or 100 Graylog Compute Units, per the same page. Confirm current pricing with the vendor before budgeting.

How long does a Redmine log setup take, and what changes the timeline?

A local rotation change on one host is usually a short task, but the timeline grows with the number of hosts, the testing required and the change control your organization applies. A central platform takes longer because it involves sizing, deployment, input configuration, parsing, dashboards, alerts and access reviews. The main drivers are the expected daily log volume, the retention period, whether the platform is clustered, the number of sources beyond Redmine, and whether the security team must approve the design. Ask for a written plan that lists these items so the duration can be checked against your change calendar.

Which parts of a log management scope are fixed, and which depend on the platform?

A fixed scope usually covers the log level and rotation settings on named hosts, the verification steps, and a short runbook for the team. Items that depend on the platform, such as ingest pipelines, dashboards and alert rules, are better scoped once the platform and its sizing are agreed. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask the provider to separate the rotation work from the central platform work so each can be accepted on its own.

How do we ask for a fixed-scope quote for Redmine log management?

Send a written request that names the Redmine version, hosts, operating system, database, current log paths and the retention policy you need to meet. State whether you want local rotation only, a central platform, or both, and list the sources that will ship logs. Ask the provider to itemize setup, testing, documentation, handover and any ongoing support as separate lines, and to state assumptions such as change windows and access. Request a clear statement of what is one-time and what recurs, including platform hosting and storage. DeployOpen provides a quote based on a written scope, and does not publish a price list.

How DeployOpen scopes and supports Redmine log management

DeployOpen treats Redmine log files and log rotation as part of the production platform, not an afterthought. We scope the logging setup, build the rotation and shipping configuration in your infrastructure, and hand over documentation your operations team can run without us.

How we scope

  • We confirm where your Redmine production log is written and which Redmine version and deployment method you run.
  • We agree the log level, retention period and rotation method (logrotate or Rails settings) in writing before work starts.
  • We define whether custom logger levels and central log shipping are in scope, and which incident questions the logs must answer.

How we build

  • We configure log rotation and file permissions on your Redmine host and test that rotated files are written and compressed as expected.
  • We set up any agreed custom logger levels and confirm that sensitive data is excluded from log output.
  • We connect the Redmine logs to your central logging platform, if in scope, and verify that events arrive with the fields your team needs.

How we hand over

  • We document the log locations, rotation settings, retention rules and the steps to change the log level safely.
  • We provide a short incident reference listing which log entries to check first for slow pages, failed logins and errors.
  • We walk your administrators through the configuration and confirm they can restart and verify the setup on their own.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work begins.
  • Ongoing support, Redmine upgrades and log configuration reviews after upgrades are available as a retainer.
  • Ask any provider to confirm which logs survive a Redmine upgrade and which settings must be reapplied afterwards.

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.