X-Road system services and log configuration

Operations and audit teams need to know which Security Server system services write logs, where those logs land and how long they stay available. This page explains how to configure log levels and shipping, what to confirm in the documentation and what the work needs from your team.

On this page

Why X-Road log configuration decides what your team can investigate

When a data exchange fails or an auditor asks who called a service last quarter, an operations or security lead can only answer from what the Security Server recorded, so log scope and retention have to be settled before an incident. This page covers how the X-Road system services write logs, how to adjust their log levels and how to ship those logs to central log management. The first decision is scope: which services write logs, at what level, and which entries leave the server at all. A fault in an exchange can sit in the information system, the network path, a certificate or the Central Server, and the logs your team can read determine how quickly it can tell these apart. Settle the scope with the people who will investigate, so the answer is documented before the first incident.

Retention is the second decision, and it is easy to leave for later because logs look harmless until someone needs them. Local storage on a Security Server is bounded by disk space and by the rotation settings you configure, so if older files are overwritten before anyone reviews them, a question about a past period cannot be answered from that server. Central log management keeps a copy off the box, but it adds a second store with its own access controls, retention period and running cost. Ask who can read each store, how long it keeps entries, and whether that period matches what your auditors and data exchange agreements require. Write those answers down before the first incident.

Confirm every service name, log path and level name against the official installation and user guides for the version you run. The supported versions today are 7.8.3, 7.7.4 and 7.6.5, and a path copied from an older runbook may no longer match the release in front of you. The X-Road Security Server user guide defines five roles and says admin users are authenticated through PAM, which can be integrated with LDAP via SSSD and mapped to X-Road roles. Decide which role may change log levels and forwarding settings, and keep those changes traceable. Pair that with the account lockout and key-only SSH guidance in the hardening guidelines, and record the version, file names and owner of each setting in your runbook.

Which log configuration option fits your operations and audit needs

This table compares four log configuration options for an X-Road Security Server: keeping logs local, changing the log level for one service, shipping logs to a central platform, and combining local and central retention. Read each row for the situation it suits, the disk, network and staff effort it adds, and the points to confirm in your environment before you change anything. The main takeaway is that the choice depends on how long you must keep evidence and who must read it, so confirm those requirements first.

OptionWhen it fitsDisk, network and staff timeWhat to confirm
Keep logs local with default settingsSmall estate, a short review cycle, and an audit that accepts reviewing files on each server.Disk on each server grows with activity. No added network traffic. Staff time goes to collecting files by hand during reviews.Log location, rotation and size limits in your build. Who may read the files and how long your audit needs them.
Raise or lower the log level for one serviceTroubleshooting a specific service or integration for a bounded period, with a planned revert.Little extra disk if reverted promptly. More detail usually means more disk use. Staff time goes to tracking and reverting changes.Which levels your version supports, where the setting lives, and whether a change needs a service restart.
Ship logs to a central log platformSeveral Security Servers, a central operations team, or teams that need one search across the estate.Network traffic from each server to the platform. Platform storage and hosting. Staff time to build parsing, alerts and access rules.Which log files and fields the forwarder can read, the platform's retention and access controls, and whether logs contain personal data.
Combine local and central retentionAudits that need original files on the server, plus central search for day-to-day operations.Disk for local copies plus central storage. Two retention schedules to verify. Most staff time goes to keeping both aligned.Local retention period, central retention period, and who owns deletion. Whether your auditors accept the central copy as evidence.

How Security Server logs move from services to central log management

The diagram starts on the Security Server host, where the X-Road system services write their local logs. A log shipper, which is a choice you make, reads those logs and forwards them over the internal network, protected by TLS. The host is the trust boundary to check: review the shipper's credentials, the network path and the permitted destinations with both your operations and security teams. On the central side, operations staff and auditors work from the same log store, so access and retention rules need to cover both groups. Confirm the log locations, log levels and retention settings in your own deployment before you finalize the design.

Log flow from Security Server host to central log management.

How log levels trade diagnostic detail against volume and cost

Raising the log level on a Security Server buys troubleshooting detail at the cost of disk use, shipping volume and the chance of recording sensitive content. More detailed entries show each step a request took, which helps when a consumer reports an intermittent failure that is hard to reproduce. The same entries grow local log storage, multiply the lines your log forwarder must ship to central log management, and may capture request fields, identifiers or payload fragments that your data protection rules do not allow in operational logs. Before you raise a level, confirm in the Security Server user guide and your release notes which components the setting applies to, because the effect on volume differs between services. Size storage and forwarding capacity for the higher level before you need it.

Lower levels reduce noise, storage use and forwarding cost, but they can remove the evidence an incident review needs. If the level drops the entries that explain why a request was rejected or how long a call waited, the first report of a fault may arrive with nothing to match against. Choose a level your team can investigate with on a normal day, and record which level each Security Server runs and why. Also confirm that a change to operational logging does not affect the message log or audit log you rely on as evidence. Before an incident, check that your central tooling can still search for the fault detail identifiers you read in diagnostics at the level you run in production.

Change levels for a bounded time window, and write the rollback plan before you make the change. A change record should name the Security Server, the component, the current and target levels, the start time, a planned end time, the owner and the exact steps to restore the previous setting. Schedule the restore where possible so that a forgotten change does not run for weeks. Before you apply a higher level to production, test it on a non-production Security Server that handles comparable message traffic. Measure how much disk the logs consume over a representative period, watch the queue on your log forwarder, and check the ingest and retention load on the central platform. Review a sample of entries for sensitive content and confirm the result with your privacy or compliance owner before the window opens. Size the test from your own traffic and your retention policy.

How to configure system service logs and shipping on a Security Server

This sequence takes a Security Server from default logging to a tested setup in which system service logs are kept at a chosen level and retention, shipped over TLS and parsed correctly in central log management. Each step ends with a check you can run and a record you can keep. Confirm every service name, file path and setting key against the official Security Server installation and user guides before you run it.

  1. Confirm the X-Road version and platform

    The platform team checks the installed X-Road version and the host operating system before changing anything. The current release is 7.8.3, and the supported versions are 7.8.3, 7.7.4 and 7.6.5, so confirm the Security Server runs one of them. The Security Server supports Ubuntu Server 22.04 and 24.04 LTS on x86-64 and Red Hat Enterprise Linux 8 and 9. Confirm exact package names and any version-specific logging behavior in the official Security Server installation guide. Done when a written record shows the X-Road version, operating system and guide revision used for this work.

  2. Inventory system services and log outputs

    Run the inventory on the test Security Server to list every X-Road system service and each place it writes logs. On a systemd host, a command such as systemctl list-units filtered for X-Road names shows the services, and journalctl shows whether they write to the journal. Match each service name and log file to the entries in the Security Server user guide, and note any output that the guide does not document. Ask the project or your vendor contact to confirm names for your target version before you write configuration against them. Done when a table lists each service, its log output, its owner and the guide section that describes it.

  3. Set log level and retention in test

    Make the change in a test Security Server only, using the method the user guide describes for log levels, which may be a UI setting or a configuration file. Set the level for the services you inventoried, and set retention to match your policy and available disk space. Record the old value of every key before editing, and restart only the services the guide says need it. Check that each service reports the new level after restart and that the rotation settings appear in the effective configuration. Done when the test host shows the chosen level and retention, and you hold a copy of the original settings.

  4. Verify local log entries and content

    Generate known traffic from a test information system, such as one request that should succeed and one that should fail, and read the local logs for the affected services. Use tail on the log files or journalctl for the units, then confirm each entry has a timestamp, service name, severity and the request or fault identifiers the guide describes. Check that entries contain no passwords, tokens or unneeded personal data, and that multi-line messages stay together. Compare the result with the expected content you wrote down during the inventory. Done when both test requests appear with the expected fields and no sensitive values.

  5. Configure the shipper with TLS transport

    Install or configure the log shipper your central platform supports, pointing it at the log files or journal entries identified in the inventory. Set the destination to the central ingestion endpoint over TLS, using a certificate chain your central team trusts, and limit the shipper's read permissions to the X-Road log paths. Store its credentials outside the Security Server configuration files that your backups capture. Check the connection with a TLS test such as openssl s_client against the endpoint, then confirm the shipper log reports a successful connection with no certificate errors. Done when the handshake verifies and the shipper reports that it is sending events.

  6. Confirm central ingestion and field parsing

    In the central log platform, search for the test events from the test Security Server host and check how each field was parsed. Confirm that timestamp, host, service name, severity and identifiers are separate searchable fields that can be filtered individually, and that the time zone matches the source. Run the same search for the failed request to confirm error entries are indexed. Compare the results with the entries from the local verification, and check that no events are dropped or duplicated. Done when a saved search returns both test requests with every expected field populated, and the parsing rules are recorded for the team.

  7. Document and rehearse the rollback

    Write a rollback record that lists the original log levels, retention settings, shipper configuration and central parsing rules, with an owner and the steps to restore each one. Rehearse the rollback on the test Security Server: restore the saved settings, restart only the services the guide requires, stop the shipper, and confirm the local logs return to the baseline. Obtain written approval from operations and security before the same sequence is applied to production. Done when the rehearsal is logged, the rollback steps have been reviewed, and the production change record points to this document.

Log shipping choices for connected, restricted and air-gapped networks

Connected networks can send logs over an outbound path to a central log platform, whether a managed service or one the organization hosts itself. The main design work is deciding which Security Servers may reach the collector, through which egress point, and under which identity. Keep the collector reachable only from the Security Server network segment and treat the forwarder's credentials as production secrets.

  • Transport: Use an encrypted channel to the collector, and confirm that the firewall or proxy in the path allows the protocol and port the forwarder uses.
  • Credentials: Issue a dedicated ingest token or client certificate for each Security Server, store it outside the X-Road configuration files, and plan rotation before expiry.
  • Certificates: Check that the collector's certificate chains to a CA trusted by the Security Server host, and record who owns renewal.
  • Failure modes: Blocked outbound ports, proxy timeouts and expired certificates create silent gaps, so alert on the forwarder's own health and not only on log volume.
  • Local buffering: When shipping stops, logs accumulate on local disk, so size the buffer and alert on free space well above the 3 GB minimum in the installation guide.

Confirm with the security team which data classes may leave the network, and with the network team the exact egress rules, proxy path and monitoring for blocked connections.

Security and operational risks in X-Road logs

Logs from an X-Road Security Server hold more than routine events. They contain identifiers that can be personal data, record who administers the server, and become evidence when something goes wrong. The cards cover the controls that keep those logs appropriately restricted, complete, protected and reviewable.

Personal data in logged metadata

X-Road logs record message metadata such as member identifiers, service names, client and provider identifiers and timestamps. When a record can be linked to a natural person, through a user account or a traceable consumer, data protection rules apply to it. Decide which fields your logging configuration writes and which your log platform forwards. Set access limits and retention rules with your privacy team before logs leave the server, and limit reading access to the people who need it for audits and incidents.

Admin and login events

Admin logins, role actions, configuration changes and failed sign-in attempts answer the questions that follow an incident: who changed a service, and who tried to get in. These events must be preserved for accountability, so confirm which of them your version writes and where. Check that they are kept outside normal log rotation, that they reach central storage, and that clocks are synchronized across servers so the sequence of events holds up. Keep them for the period your accountability and incident obligations require.

Transit, storage and log levels

Log data is exposed when it moves to a central platform and when it sits on disk. Use encrypted transport to the log platform, restrict file permissions on the host, and encrypt the central store where your policy requires it. Verbose log levels capture more detail than routine operations need, so limit who can change log levels and record each change. Return the level to its normal setting after troubleshooting, since a level left at debug keeps producing the extra data.

Log integrity and tamper evidence

A log is only useful as evidence if an administrator cannot quietly edit it. Forward copies to a store that Security Server administrators cannot modify, and use write-once or append-only storage where your platform supports it. Hash or sign log batches when they are archived, and keep the hash records apart from the logs they protect. Test the check in a lab by altering a sample file and confirming that the check catches it.

Central platform access and admin roles

The central log platform is a separate system with its own accounts, and its operators should not automatically hold Security Server administrator rights. Map platform roles to log reading, dashboard editing and platform administration, and keep them separated from X-Road administrator roles such as Security Officer and System Administrator. When admin users come from LDAP through PAM and SSSD, confirm group mappings in one place so a departing employee loses both sets of access. Review platform access on the same schedule as Security Server role reviews.

Security Server user guide

Hardening baseline and logged events

The hardening baseline for Security Server accounts covers lockout after failed logins, strong passwords, key-only SSH and the allowed-hostnames setting against host header injection. Each control should leave evidence you can review. Lockout events show repeated guessing, SSH logins show who reached the host, and requests with unexpected host names show probing. Confirm that your logs record these events, and apply the baseline before you rely on the logs to detect abuse.

Security hardening guidelines

Questions buyers ask about X-Road log configuration and effort

What does an implementation partner do that an internal team could do alone?

An internal team can do most of this work alone, and a partner mainly adds speed, a second review and a written record. The change itself is a set of logging settings and the way events leave each Security Server, checked against the release documentation for your version. What an outside team typically adds is a current inventory of every server and its settings, one configuration applied the same way across the fleet, tests that show events still reach the central platform after the change, and documentation your auditors can read. Your team keeps ownership of the log platform, retention rules and approvals. Whether a partner is worth it depends on how many servers you run, how much X-Road knowledge you already have, and how soon an audit date arrives.

What makes X-Road log configuration take more effort?

The main drivers are the number of Security Servers, the central log platform, network restrictions, audit requirements and the sensitive-data review. Each server needs the same change checked on its own, so a fleet takes more verification than a single server even when the settings match. An existing central platform with parsing, retention and access groups already defined shortens the work, while building that platform during the engagement lengthens it. Network restrictions add time for firewall rules and change approvals between the servers and the collector. Audit requirements decide which events must be kept and for how long. The sensitive-data review asks which fields may hold personal data or message content, and whether they should be masked or excluded before logs leave the server. Ask for each driver to appear as its own line in the quote.

Can our team configure X-Road logs without outside help, and where is the risk?

Yes, a team that already administers Linux servers can usually make the change alone, and the risk sits in what surrounds the change. The common failures are leaving detailed logging on in production, which can fill disks and capture more detail than intended, shipping logs without checking that the fields you need arrive, and changing one server while assuming the rest match. Log files can also contain identifiers and request details, so read access needs the same care as access to the servers themselves. Before changing anything, record current settings, make the change on a test Security Server, confirm the central platform receives the events, and set a date to revert any temporary settings. The X-Road security hardening guidelines are a useful checklist for deciding who can read and change these files.

How long does X-Road log configuration take, and what sets the length?

No general figure is reliable because length depends on the fleet and the environment, so ask for a timeline in the written scope. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. The main factors are the number of Security Servers and whether they share settings, whether a central log platform already exists, how many approval cycles sit in your change process, whether test servers that match production are available, and when the audit or assessment date falls. The sensitive-data review can take longer than the technical change because it needs decisions from people outside the project. A single well-prepared server in an environment with a working log platform moves much faster than a fleet that needs new infrastructure first.

What must our team provide before log configuration work starts?

Four inputs usually decide whether the work starts on time, and a partner should ask for each in writing:

  • A current inventory of every Security Server, with X-Road version, hosting, owner and any existing logging setup.
  • Access to test Security Servers that resemble production, plus a change window for production.
  • A named owner for the log platform, with retention, index and access decisions already made or scheduled.
  • Written approvals from security, compliance and data protection contacts, including who signs off the sensitive-data review.

Missing one of these moves the start date as well as the work, so confirm them before the scope is signed.

What should a quote for X-Road log configuration itemize?

A quote should itemize each phase and separate one-time work from anything that recurs. Ask for these lines: discovery and inventory across the Security Servers, the configuration design, the change on each server with its verification, integration with the central log platform, the sensitive-data review and any masking rules, documentation and handover to your operations team, and retest after changes. Name what the client provides, such as log platform licenses, log storage and internal approval time, so those costs are visible before work starts. Ask whether ongoing support, upgrades or continuous testing are included or offered as a separate retainer, since those recur. DeployOpen does not publish a price list, so a quote follows from the written scope.

How do logs relate to X-Road backup and monitoring work?

Logs record events and errors, backups protect configuration and data, and monitoring tracks health and request activity, so each needs its own design even though they share servers. Security Server backups and the database and message log data are handled separately, so confirm that log settings and log destinations are covered by your restore procedure. Operational monitoring records request statistics that are separate from the event logs, and it can feed dashboards or a central monitoring client. Align log retention with backup retention so auditors see one consistent story. Plan the three together with the same owner, the same change record and one restore test that checks both configuration and logs.

Limits and what to confirm in your environment

Log configuration for X-Road system services depends on the exact release, operating system and log platform in use. Confirm each item below with the official X-Road documentation or the NIIS community before the change window, and test every change on a non-production Security Server first.

Service names and log paths

Service unit names, log file locations and log level names are tied to the installed package version, so confirm them on the exact release before you write any override. List the installed units and read the log directory on a non-production Security Server. Record the output in the change ticket so the rollback step uses the same names. If the names you see differ from the documentation, raise the difference with NIIS before you proceed.

Security Server user guide

Default retention and rotation

Retention and rotation for system service logs come from the package defaults and any rotation configuration on the host. Confirm how many days or files are kept, when rotation runs and whether old files are compressed. Do not assume the defaults match your audit period, because a short window can remove evidence before the central platform collects it. Write the confirmed values into the runbook and make sure the shipper reads files before rotation removes them.

Shipper support on your OS

Confirm that the log shipper you chose supports the operating system and architecture of each Security Server. The documented platforms are Ubuntu Server 22.04 and 24.04 LTS on x86-64 and Red Hat Enterprise Linux 8 and 9, so the shipper must also support those releases. Check the shipper's own compatibility matrix, its package source and how it handles file rotation. An unsupported shipper can stop forwarding without an obvious error on the host, so verify that events reach the central platform after each restart.

Installation guide

Disk headroom above the minimum

The documented minimum is 3 GB of free disk space, and that figure covers the installation, not your log growth. Measure how fast the log directory grows under production message volume at the level you plan to use, including any debug output. Size free space for peak growth plus the time needed to ship and rotate logs, and set an alert before the partition fills. Confirm the final figure against your own monitoring data.

Release-specific logging changes

Logging behavior can change between X-Road releases, so names and levels verified on one version may not hold on another. The current release is 7.8.3, and the supported versions are 7.8.3, 7.7.4 and 7.6.5. Confirm which release each Security Server runs and check the release notes for changes to logging, log levels or packaging before any upgrade or configuration change. Repeat the check for every server in a cluster.

X-Road releases

Central platform retention and access

The central log platform must meet the retention and access rules in your own policies, and X-Road does not set those rules for you. Confirm how long the platform keeps system service logs, who can search or export them and whether personal data in log fields falls under your data protection controls. Check these answers against the written requirements of your policy owner and record who approved them before the first log leaves the server.

How DeployOpen scopes, delivers and supports X-Road log configuration

DeployOpen plans X-Road system services and log configuration as part of the Security Server build, so logging is designed before the first production message flows. We agree the log levels, destinations and central log shipping in writing, then configure and test them on servers in your own infrastructure. Every engagement ends with documentation your operations and audit teams can follow after handover.

How we scope

  • The written scope lists each Security Server, the X-Road system services in use and the log destinations involved.
  • We confirm the log levels, retention and access expectations your security and audit teams need before configuration starts.
  • Fixed-scope agreements set deliverables and timelines in writing, and ongoing support is available as a retainer.

How we build

  • We confirm the system services and log paths for your chosen supported release before writing any configuration.
  • We set log levels and destinations through the documented configuration, and record every change in the build runbook.
  • We ship logs to your central log platform and test that expected events arrive, including after a restart.

How we hand over

  • Handover includes a written record of log levels, log destinations, shipping configuration and who can change them.
  • Operations staff receive a runbook covering log locations, changing log levels and checking that shipping works.
  • Audit and security teams receive sample entries so they can confirm the logs meet their review needs.

How we support

  • Retainers can cover support, upgrades and continuous testing of the logging setup, scoped in writing.
  • When you move to another supported release, we re-check system service names, log paths and shipping after the upgrade.
  • Changes to log levels or destinations go through the same written change record, so audit trails stay consistent.

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.