Odoo logging and monitoring for operations teams

What to log and watch in a self-hosted Odoo installation, how the built-in log settings fit with your existing tools, and which alerts catch problems before users report them.

On this page

Odoo logging and monitoring: what operations teams need to see

When users report slow or failing screens and nobody can say why, the gap is usually visibility, not a lack of data. Odoo logging and monitoring turns the log output Odoo already writes and the signals PostgreSQL exposes into alerts that the operations team acts on before users open tickets. The work is a design exercise: decide which events matter, where they go, who receives them and what action each alert triggers. It applies to self-hosted installs where your team controls the application servers, the database host and the log destinations, because you cannot wire alerts into a server you do not operate.

Start with the log configuration. Odoo's --log-handler option sets levels per logger, for example odoo.models:DEBUG, so you can raise detail for one area without flooding the file with debug output everywhere. The --syslog option sends logs to syslog on Unix systems, which lets your existing collector handle retention and forwarding. Confirm the exact options and their behavior for your Odoo version in the Odoo 19.0 command-line reference before you standardize them. Then decide which events must be retained and searchable: failed and successful login lines, worker restarts, scheduled action errors and long-running requests. Leave debug levels off in production unless a named investigation needs them.

Pair the application signals with PostgreSQL metrics such as connection counts, lock waits, replication lag where a replica exists, and disk growth, since slow Odoo screens are often database symptoms. Set thresholds from a baseline captured during normal business hours, not from defaults, and alert on trends like cron lag growing over several cycles rather than single spikes. The Community and Enterprise split does not change logging itself. It affects which hosting and upgrade services you can use, so confirm that your edition and hosting type support the log access and server control your design needs. Agree on alert owners and escalation paths in writing before go-live.

Which log settings fit which environment

On a single self-hosted server, Odoo's logs are usually read directly from the host and kept in files that the team rotates and archives itself. The main decision here is verbosity. The default level is adequate for daily operations, and specific loggers can be raised only while investigating a problem. The --log-handler option takes pairs in the form of a logger name and a level, such as odoo.models:DEBUG, so a single noisy area can be turned up without flooding the whole log. Raising every logger to DEBUG on a busy database produces very large output and can slow the server, so changes should be temporary and reverted after the investigation.

  • Default level for daily running: Keep the server at its standard level and record which loggers were changed and when.
  • Targeted debugging: Use --log-handler with one logger at a time, such as odoo.models:DEBUG, to narrow an investigation.
  • Restart after changes: Confirm the exact startup arguments in the service file, since command-line logging options take effect when Odoo starts.
  • Disk growth: Set log rotation with the operating system tooling so that a verbose period does not fill the data disk.
  • Log location: Confirm where your installation writes its file output and whether the operations team has read access.

Confirm with your team how long local logs are kept and whether anyone checks them before an incident, because files that nobody reads give no early warning.

Configuration options and when each fits

This table compares the logging options the Odoo command-line interface provides, plus leaving logging at defaults with external collection. Read each row for the situation it suits and the trade-off it brings. The main takeaway is that per-logger levels and syslog are settings to confirm against your Odoo version before you rely on them in production.

OptionWhat it controlsWhen it fitsTrade-off
--log-handlerSets log levels per logger, for example odoo.models:DEBUG, so one area can be more verbose than the restInvestigating a specific fault, such as model access or ORM behavior, for a bounded timeVerbose levels produce large volumes and can expose data, so set them back once the investigation ends
--syslogSends Odoo log output to syslog on Unix systems instead of only to the default log destinationHosts that already ship syslog to a central collector and need Odoo lines in the same streamLog lines depend on the syslog daemon and its rules, so confirm formatting and retention with your platform team
Defaults plus external collectionKeeps Odoo's standard output and log file, with an agent or collector reading it from disk or the container runtimeTeams with an existing log platform who want minimal change to Odoo configurationYou must confirm which events reach the collector and that log rotation does not drop lines
Logger-level tuning for cron and workersChanges verbosity for scheduled action and worker messages through per-logger levelsDiagnosing late or missing scheduled actions and worker restartsNeeds a check of the logger names available in your Odoo version, so confirm them in the CLI reference before setting them
Permanent debug levelKeeps verbose output on all loggers at all timesRarely appropriate outside a lab or short test windowHigh disk and noise cost, and sensitive record content may appear in logs
Logs for login success and failureDepends on which authentication messages your version writes at the chosen levelTracking sign-in failures for security review and alertingConfirm in your version which lines appear and whether usernames are included before building alerts

What to log and watch for login failures, worker restarts and cron lag

Start with four signals: login success and failure lines for security review, worker restarts that point to memory or timeout trouble, cron and queued job lag that shows scheduled actions running late, and PostgreSQL metrics that show connection pressure and slow queries. Each one answers a different operations question, so give each an owner and a clear reason to exist before you write any alert rule. Login lines feed the security team, restart and lag signals feed the platform team, and database metrics feed whoever runs PostgreSQL.

Login lines are the easiest to misread. Odoo writes authentication outcomes to its server log, and a burst of failures for one account or from one address is worth a look even when the count is small. Confirm the exact wording of those lines, the fields they include and whether the client address is recorded correctly behind your reverse proxy, by reproducing a failed and a successful sign-in in your own install. Wording changes between versions, so do this on the version you run, not from memory or an older guide. Only then write patterns against them.

Worker restarts and cron lag are best read together. Repeated worker restarts can mean memory pressure or requests hitting time limits, while scheduled actions that start late usually mean cron threads are busy, too few are configured, or a long job is blocking the queue. Track when a scheduled action was due against when it ran, and watch the PostgreSQL connection count and slow query log alongside them. Agree on the thresholds with your own team after a few weeks of baseline data. Any number chosen before that baseline exists is a guess.

How to set up Odoo logging and alerts step by step

This sequence moves from agreeing what gets logged and where it goes, through handler configuration and verification, to alerts that have been tested in staging before operations relies on them. Each step ends with a check so the team knows it is finished.

  1. Agree log destination and retention

    Operations and security owners agree where Odoo logs go, who can read them, and how long they are kept. Write down the answers for application logs, the reverse proxy logs in front of Odoo, and PostgreSQL logs, since each one is usually owned by a different person. Confirm the retention period with your own policy and any compliance obligations, because no retention figure is set by Odoo itself. Done when the decision is written down and signed off by both owners.

  2. Set log handler levels in service startup

    Set the logging behavior in the Odoo service startup, not in an interactive shell, so it survives restarts. The --log-handler option sets a level per logger, for example odoo.models at DEBUG, and the rest of the configuration can stay at INFO. Keep DEBUG levels narrow and time-limited, because verbose loggers add disk and noise quickly. Check the result by restarting the service and confirming that the expected logger names appear in the output with the levels you set.

  3. Route output to syslog or the central collector

    Send Odoo output to syslog with the --syslog option on Unix systems, or to the file path your collector reads, depending on your design. Confirm that the collector agent on the server forwards those lines to the central store and that timestamps and hostnames are preserved. Ask the collector team to confirm the parsing rules for Odoo lines, since they are not something Odoo configures for you. Done when a line written by Odoo is searchable in the central tool within the latency your operations team accepts.

  4. Verify login success and failure lines

    Sign in with a test user to confirm a successful login line appears, then attempt a failed sign-in with a wrong password and confirm a failure line appears. Repeat the same check for a user who signs in through your identity provider if you use one, such as LDAP or OAuth, because those paths can log differently. Record the exact text your team will search for. Done when both test events appear in the central store with a timestamp, the source host and enough context to tell the two apart.

  5. Add worker restart and cron lag checks

    Add a check that flags Odoo worker restarts, and a check that measures scheduled action lag by comparing when jobs were due with when they actually ran. Use the scheduled action records in the database, along with the log lines that show workers starting, to build both signals. Pair this with the troubleshooting guidance on scheduled actions and cron workers so the team knows what a lag reading means. Done when a deliberate restart produces an alert or log event and a test scheduled action shows its run time in the lag report.

  6. Collect PostgreSQL metrics and set alert rules

    Collect PostgreSQL metrics such as connection counts, replication status if a replica exists, lock waits, and disk usage on the data volume, using the exporter or monitoring agent your team already runs. Define alert rules for thresholds your DBA sets, since suitable values depend on your workload and connection limits. Include Odoo worker count against the database connection limit so connection exhaustion is visible before users notice slowness. Done when each metric appears on a dashboard and each rule shows its current state.

  7. Test each alert in staging

    Trigger each alert in a staging copy so you know it fires and that the right person receives it. Examples include stopping a worker to produce a restart event, failing a test login repeatedly, holding a lock in a test database, and pushing a connection count past its threshold. Use a neutralized staging copy so no real messages or external actions run during the tests. Done when every alert has been fired once, the notification reached the on-call channel, and the team has written a short runbook entry for each.

How Odoo logs, PostgreSQL metrics and alerts connect

The diagram starts with the Odoo server and its workers, which write log lines through the log handler to syslog or a file on the Odoo host. A collector on that host forwards them across the trust boundary to the central log platform. PostgreSQL metrics take a separate path into the monitoring system, and alert rules route to on-call. Check the boundary crossings first: what leaves the Odoo host, under which credentials, and whether the alert path still works when the log platform is down.

Log and metric flow from the Odoo host to on-call, with the trust boundary marked.

Protecting logs that contain user and access data

Odoo logs record who signed in, what failed, and sometimes what data a request touched, so they carry the same sensitivity as the database they describe. The six risks below cover retention, access, authentication signals, debug settings, transport and database metrics, and each one has a concrete check your team can run against its own deployment.

Personal data in log lines

Logs can capture login names, email addresses, IP addresses and, at debug levels, record values from model operations. Decide which fields your team actually needs for troubleshooting and which should never reach a log file. Write a retention rule for logs in the same way you wrote one for the database, and confirm with your privacy team whether log copies sent to a central platform fall under the same schedule. Check a sample of recent log files for personal data before go-live.

Access to the log platform

Anyone who can read the log store can often reconstruct user activity, session timing and internal hostnames. Restrict read access to the operations and security roles that need it, and keep it separate from Odoo administrator rights. Review who holds access each quarter, and confirm that the log platform authenticates through your central identity provider with multi-factor authentication enabled, not through shared accounts.

Failed login lines for brute force detection

Failed sign-in lines are the main input for spotting password guessing against Odoo, but they only help if they are written consistently and reach a system that alerts on them. Confirm which failed-login messages your Odoo version writes, then set a threshold per source address and per account. Pair these alerts with the brute force protection, two-factor authentication and LDAP settings described in the Odoo security hardening pages, so detection and prevention are both in place.

Debug level left on in production

Setting a logger such as odoo.models to DEBUG through --log-handler is useful during an investigation, but it can write sensitive detail and slow the server under load. Treat debug settings as a change that needs a ticket, an owner and a planned revert time. Monitor for debug output in production configuration, and make sure the Odoo server configuration is managed in version control so drift is visible.

Odoo CLI docs

Encryption in transit to the log server

When Odoo sends logs over syslog, the messages cross the network in plain form unless the transport is protected. Decide whether the log path stays on a private segment or needs TLS between the Odoo host, any relay and the collector. Check that the collector only accepts connections from known senders and that certificates are renewed before expiry, since a silent failure here means lost security events.

Who can read database metrics

PostgreSQL metrics and exporter endpoints can expose query text, database names, role names and connection counts, which help an attacker map the system. Limit scrape endpoints to the monitoring network, require authentication where the exporter supports it, and avoid giving the monitoring account superuser rights. Confirm with your database team which metrics include query text before you enable them, and treat those dashboards as sensitive.

Questions operations teams ask about Odoo monitoring

What drives the cost of an Odoo logging and monitoring build?

The main drivers are how many Odoo databases, workers and PostgreSQL servers need watching, how much of the stack already has a monitoring tool your team runs, and how many custom modules produce logs or scheduled jobs that need their own signals. Costs come from two places: the partner's time to design logging levels, collection and dashboards, and the infrastructure or tooling you run to store and view the data. Most of the spend is one-time design and build, while retention storage, alert maintenance and on-call review recur. Ask any quote to list the monitoring tools in scope, the number of environments covered, and whether alert tuning after go-live is included or billed separately. DeployOpen prepares fixed-scope quotes from a written scope.

How long does a logging and alerting setup take?

Duration depends on how many systems feed the setup, whether a log platform and metrics stack already exist, and how many alerts must be agreed with operations before go-live. A single Odoo instance with existing tooling moves faster than a multi-company estate with several databases, replicas and custom modules. Work usually runs in order: review current log output, set handler levels, route logs to syslog or a collector, define login and worker signals, then build PostgreSQL dashboards and alert rules and test them against real events. Your team should confirm the expected duration in the written scope rather than rely on a general estimate, since no duration is set by this page.

What does the work need from our team?

The work needs named people from operations, the Odoo administrator or developer who owns the custom modules, and the database administrator who runs PostgreSQL. Operations defines which events need a human response and who receives them. The Odoo owner confirms which log lines and scheduled actions matter for business processes. The database owner shares access to statistics views and approves any change to server settings. You also need access to the servers or containers that run Odoo, the workers and the reverse proxy, plus a place to send alerts such as a paging tool or chat channel. Agree these owners before the build starts, because missing ones are the most common cause of delayed sign-off.

Can an internal team set up Odoo monitoring alone?

Yes, a capable internal team can set up logging and monitoring alone, provided it has Linux, PostgreSQL and Odoo administration skills and time to test alerts. The Odoo CLI supports per-logger levels through --log-handler and syslog output through --syslog, so the basic configuration is within reach of an administrator who reads the documentation. The harder parts are choosing which signals predict failure, avoiding alert noise, and keeping rules aligned after each Odoo upgrade. Many teams start internally and bring in a partner for the design review or the first round of tuning. Decide which skills are missing before deciding whether to build in-house or outsource.

Should a partner own alert tuning after go-live?

A partner can own alert tuning under a retainer, but the choice depends on who responds to pages and who can change thresholds without a change request. Alert tuning is continuous: noisy rules get adjusted, new custom modules add signals, and each major Odoo version changes log output and support timelines. Odoo standard support covers the first three years after a major release, and Odoo SaaS versions are released every two to three months, so the alert set needs review on a regular schedule. If a partner owns tuning, the written agreement should state who approves changes, how fast alert problems are handled and how changes are documented. DeployOpen offers ongoing support and continuous testing as retainers.

How is monitoring different from a performance audit?

A monitoring build gives operations continuous signals so problems surface as they happen, while a performance audit is a one-time review of why Odoo is slow and what to fix first. Monitoring covers logs, worker restarts, cron and queue lag, login failures and PostgreSQL metrics, with alerts routed to people who respond. A performance audit covers deployment and worker setup, PostgreSQL health, profiling of key screens, custom module code, data growth and a prioritized fix list. The two work well together: the audit identifies which metrics matter for your workload, and monitoring keeps watching them afterward. Ask any provider to state which of the two the quote covers.

How DeployOpen works on this

DeployOpen plans, builds, documents and supports Odoo logging and monitoring inside your own infrastructure, so your operations team can see worker health, login activity, scheduled jobs and PostgreSQL behavior before users report problems. Every step runs against a written scope that your team has reviewed and approved.

How we scope

  • Inventory your Odoo versions, hosting type, worker setup and where logs currently go.
  • Agree which log handlers, levels and syslog destinations the written scope covers.
  • Define the alerts for worker restarts, cron and queue lag and PostgreSQL metrics, with owners for each.

How we build

  • Configure logging options in the Odoo server and test each level on a staging copy first.
  • Connect syslog or your existing collector and confirm login success and failure lines arrive intact.
  • Build dashboards and alert rules that match the thresholds your operations team agreed to.

How we hand over

  • Deliver a runbook covering each log source, what normal looks like and who responds to each alert.
  • Walk operations staff through the dashboards and a simulated alert so they can act without us.
  • Document every configuration change so future Odoo upgrades can be checked against the same settings.

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Ongoing monitoring review, upgrades and continuous testing are available as a retainer.
  • Confirm with your team which monitoring tools and retention rules your own policies require before scoping.

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.