Indexing existing DICOM folders with Orthanc

Orthanc can publish DICOM files that already sit on a filesystem without copying them into its own storage. This page explains how the Folder Indexer works, what it costs in storage and index size, and when Advanced Storage replaces it.

On this page

Indexing existing DICOM folders with Orthanc: what it does and when teams need it

Teams with an archive of DICOM files already sitting on local disks or a network share need Orthanc to search and retrieve those files without making a second full copy. The Folder Indexer plugin is built for this situation: it builds Orthanc's index over files in place, so studies become visible through the REST API and the connected viewers. Before you commit, read the plugin's entry on the Orthanc Book plugins page and confirm which Orthanc version, index database and operating system it supports. Plugin packaging and compatibility change between releases, so verify against the current documentation rather than an older blog post or forum thread.

The plugin indexes files; it does not move them, and that is the main reason to choose it. Your storage footprint stays close to the original archive plus the index database. Confirm in the current Orthanc Book how the plugin detects files added to the folder after startup, how it handles files that are changed, moved or deleted, and whether deleting a study in Orthanc removes the source file or only the index entry. Those answers decide whether other systems can keep writing to the same folder and who owns cleanup. In a multi-instance setup, check that every Orthanc node can read the folder with the service account, because all nodes share one index database and must agree on what the files are.

Teams usually choose the Folder Indexer when they want quick access to an existing archive, need to keep files on storage they already manage, or want to test Orthanc against real data before a larger migration. The sibling Advanced Storage plugin also indexes existing folders, but it adds multiple storages, readable folder paths and delayed deletion, and it carries database version restrictions. Decide which of those features you need before you settle on either plugin, and confirm with the Orthanc Team or the Advanced Storage documentation whether your planned index database meets its restrictions.

How the indexed folder, the Orthanc index and DICOM clients connect

The diagram starts at the existing DICOM folder tree on the storage share, which the Folder Indexer plugin reads to build index entries without copying the files. Orthanc core writes those entries to its index, SQLite by default or PostgreSQL for larger archives. REST API clients and DICOM peers using C-FIND and C-MOVE reach Orthanc, not the folders directly. Before you draw the trust boundary, confirm whether the indexer only reads the share and who else can write to it.

Folder tree, indexer, Orthanc index and clients, with the share as trust boundary.

How continuous synchronization treats new, changed and removed files

The Folder Indexer reads the folder tree when it starts and builds entries in the Orthanc index, which is a database of metadata that points at the DICOM files on disk. The index does not hold the pixel data itself, so every study, series and instance that Orthanc reports depends on a file path still resolving to a readable file. Once the initial scan finishes, the plugin keeps watching the configured root for changes and adds new files to the index as they appear. Confirm in the plugin documentation for your exact Orthanc version how the watcher is enabled, how often it rescans, and whether it reacts to filesystem events or only to periodic passes, because those choices determine how quickly a new file becomes visible to clients.

Changed and removed files are where the index and the filesystem most often diverge. A file that is overwritten in place may still be indexed with metadata from its previous content, and a file deleted or moved outside Orthanc may leave an index entry that points at nothing until something requests it. Between scans, the index can therefore show studies that no longer exist on disk or omit files that a backup job or a copy tool has just written. Treat the index as a cache of the folder rather than the folder itself, and decide in advance who is allowed to write to the indexed tree, since writes by other processes are the main source of drift. Ask the plugin vendor or Orthanc Team whether a moved or renamed file is recognized as the same instance or as a new one with a new path, and test that behavior on your version before relying on it.

Drift is worth measuring rather than assuming. A practical check is to compare the instance count reported by Orthanc with a file count from the same folder tree after a known set of changes, such as a bulk copy, a deletion and a rename, and to record how long each change takes to appear in the REST API. Repeat the check after each Orthanc upgrade, since indexing behavior is part of what changes between releases. If the mismatch is unacceptable for your workflow, the Advanced Storage plugin is the alternative to evaluate, because it manages storage paths on its own terms rather than indexing a tree that other processes also change.

Folder Indexer or Advanced Storage indexer mode for existing DICOM folders

This table compares three ways to make existing DICOM files visible in Orthanc: the Folder Indexer plugin, default storage that copies files on ingest, and the Advanced Storage indexer mode. Cells marked to confirm are points the available sources do not settle, so check them with Orthanc Team or the Orthanc Book before you commit. The main takeaway is that the folder-based options avoid a second copy of the files, while database version limits and deletion behavior decide which one fits.

AspectFolder Indexer pluginDefault storage copyAdvanced Storage indexer mode
Files copied into OrthancNo, files stay in the source folder (confirm)Yes, each received file is written to Orthanc's storage areaNo for indexed folders (confirm how new files are written)
How the index is builtScans the folder and records instances in the Orthanc database (confirm scan trigger)Built as files arrive over DICOM or the REST APIIndexes existing folders as part of the storage configuration (confirm steps)
Continuous synchronizationConfirm how new or changed files in the folder are picked upIngest is the only path, so new files arrive through OrthancConfirm whether folders are rescanned automatically or on demand
Database version restrictionsConfirm supported Orthanc and database versions in the BookWorks with the built-in index and the database pluginsCarries version restrictions on the database (confirm before planning)
Multi-disk layoutsConfirm whether more than one source path is supportedOne storage area configured for OrthancDesigned to spread an archive over several disks (confirm setup)
Readable folder pathsKeeps the source folder layout (confirm how paths appear in Orthanc)Orthanc-generated internal layoutDefines readable folder paths (confirm available path options)
Deletion behaviorConfirm whether deleting in Orthanc touches the source filesDeleting a study removes its stored copy from the storage areaCan delay deletions (confirm behavior for indexed folders)
Storage footprintIndex plus the original files, with no second copyIndex plus a full second copy of every fileIndex plus the existing files, with extra copies only if configured

What drives the storage footprint of an indexed folder

An indexed folder leaves the original DICOM files where they are, so Orthanc's own disk use comes from the index, derived data and working space around it. Each component grows differently, and a pilot on a representative subset of the folder is the most reliable way to size them before committing.

Original DICOM files stay in place

With the Folder Indexer, the source files remain in their original folders and are not copied into Orthanc's storage area. Their footprint is fixed by the existing archive and grows only when new files are written to the folder. Confirm the total size and file count of the source tree, and whether any files are duplicates or sidecar files that should be excluded from indexing.

Orthanc plugins

Index database growth

The index holds patient, study, series and instance records and grows with the number of instances, not with pixel data size. The built-in SQLite index is suited to small archives, and the scalability FAQ advises replacing it with an enterprise database engine once Orthanc stores several hundred thousand DICOM instances. Measure index size on the pilot and extrapolate by instance count, not by gigabytes of images.

Instances before DB change
Several hundred thousand
Scalability FAQ

Derived and cached data

Orthanc can create derived data such as cached renderings, thumbnails and transcoded copies when viewers request formats the original files do not provide. This footprint is not fixed: it grows with viewer use and access patterns, and it can be discarded and regenerated. Check which caching and transcoding options are enabled, and observe the cache directory size over several days of realistic viewer traffic.

Logs and temporary space during indexing

The initial scan and continuous synchronization write logs and may use temporary space while processing large folders. This usage is usually peaky: it rises during the first full index and during bulk additions, then falls back. Set log rotation and retention limits before the pilot, and record peak disk use during the first full scan, since that peak sets the minimum free space the server needs.

Pilot measurements to take

Index a representative subset, such as one site, modality or year, and record bytes on disk for the index, cache and logs separately, along with instance count and peak free-space use during the scan. Repeat the measurement after a full synchronization cycle. Ask the implementation partner to deliver these numbers in the pilot report so the production estimate rests on measured values rather than assumptions.

Indexing existing DICOM folders step by step

This sequence takes an existing folder of DICOM files from a read-only archive to a Orthanc instance that serves those files over REST and DICOM networking without copying them. Each step ends with a check you can record before moving on.

  1. Confirm the Orthanc version and package

    Confirm which Orthanc release and package your environment will run on Windows, macOS, Linux or Docker, and check that the Folder Indexer plugin is available in that build. Your team should review the current release notes before choosing a version, since Orthanc 1.13.0 changed storage-area access and parsing. Done means you can run the server binary or container and see its version string in the startup log or the system endpoint.

  2. Install or enable the Folder Indexer plugin

    Install the plugin using the method for your package, or load it through the Docker image if it is included there. Add the plugin to the configuration so Orthanc loads it at startup, then restart the service. Done means the startup log shows the plugin loading without errors, and the Orthanc Explorer or the system endpoint lists it among the loaded plugins.

  3. Set the folder path and service account permissions

    Point the indexer at the folder that holds your DICOM files, and grant the account running Orthanc read access to that folder and its subfolders. Keep write access off for the indexed path, because the index should never change source files. Your storage team should confirm the mount is stable across reboots, since a missing path will leave the index out of date. Done means the service account can list and read a sample file from the path as that account, not as an administrator.

  4. Decide the index database

    Choose the index database before the first import, because moving an index later is extra work. The built-in SQLite index suits small test sets, while Orthanc documentation recommends an enterprise engine such as PostgreSQL once an archive reaches several hundred thousand instances. Confirm the database choice with your DBA and document the connection settings. Done means the configuration names the chosen engine and Orthanc starts with an empty index connected to it.

  5. Start with a small test folder

    Create a test folder with a limited set of studies, ideally copies of files that you have already reviewed, and point the indexer at it first. Run the initial scan and let Orthanc record what it finds. Compare the count of studies, series and instances against the number of files you expected from your own inventory. Done means the counts match and any unreadable or non-DICOM files appear in the logs for follow-up.

  6. Verify with REST queries

    Use the REST API to list studies and instances, then retrieve one instance from the indexed path. Compute a checksum of the retrieved file and compare it with the checksum of the original on the source folder. Do this for several files across different modalities or series, not only the first one returned. Done means the retrieved checksum matches the source for every sampled file, and the instance counts from the API agree with your inventory.

  7. Verify with a C-FIND from a test client

    From a DICOM test client on a separate host, send a C-FIND query to the Orthanc DICOM port using the Orthanc AE title and a known patient or study identifier from the test set. Confirm that the study-level results match the REST results. Only enable DICOM networking for this test if your security review has approved it. Done means the C-FIND returns the same study identifiers and counts that the REST queries returned.

  8. Scale to the full folder and record the baseline

    After the test set passes, widen the indexed path to the full folder and let the scan complete, watching the logs for errors and the database for growth. Record instance counts, the index size, and the storage footprint of the source folder as a baseline for later comparison. Confirm with your operations team how new files will be detected going forward. Done means the full count matches the inventory and the baseline is saved with the configuration.

Securing the indexed folder, the REST API and the index

An indexed folder makes existing patient images reachable through Orthanc, so the server's network exposure, authentication, file permissions and database access all need to be settled before go-live. The cards below cover the controls that connect those layers and the checks to confirm for each.

Keep remote access off by default

By default Orthanc only accepts HTTP connections from localhost. Enabling RemoteAccessAllowed opens the REST API to the network, so it should only be turned on once authentication is in place. Confirm that AuthenticationEnabled is true and that every account is defined under RegisteredUsers, and test from a second machine that unauthenticated requests are refused.

Security FAQ

Front Internet exposure with HTTPS

The Orthanc documentation recommends HTTPS and a reverse proxy for any Internet exposure. Terminate TLS at the proxy, restrict which paths and methods it forwards, and keep Orthanc itself on a private interface. Confirm certificate renewal, proxy logging and that the proxy cannot be bypassed by reaching the Orthanc port directly.

Disable script and export routes

The security FAQ warns that the /tools/execute-script route can let a malicious user run any system command, and that the export route can overwrite files. Both should stay disabled in production. Confirm this in the deployed configuration, not only in the template, and block these paths at the reverse proxy as a second control.

Scope file-share permissions

Orthanc reads the indexed folder through a service account, so that account should hold read-only access to the DICOM tree and nothing else. Grant no write, rename or delete rights on the share, and keep it out of interactive logon groups. Confirm the account can read every subfolder that Orthanc will index and that other users cannot change files Orthanc will later serve.

Least privilege for the index database

The database account that Orthanc uses for its index should own only the schema it needs. Separate it from administrative accounts, restrict network access to the Orthanc hosts, and keep credentials out of shared configuration files. Confirm which database roles the plugin requires in your version before granting them, and test that a failed login does not expose connection details in logs.

Per-request decisions with authorization

The advanced authorization plugin forwards each REST request's token to an external web service, which allows or denies access and returns HTTP 403 when denied. This suits sites that need study-level decisions rather than a single login. The reference project pairs it with Keycloak-issued tokens and Orthanc Explorer 2. Confirm the policy service's own availability and failure behavior, since a request that cannot be decided should not be allowed.

Authorization plugin docs

Confirm access logging before go-live

Exposing a folder of patient images widens the attack surface, because every reachable route and every stored file becomes part of what must be protected and reviewed. Access logs should record who retrieved which study and from where. Confirm with your security team that Orthanc and the proxy log these events, that logs leave the host, and that retention meets your policy.

When the Advanced Storage indexer mode replaces the Folder Indexer

If one existing archive has to stay exactly where it is, the Folder Indexer is usually the first option to test. It publishes files that already sit in a folder tree through Orthanc without copying them, so the original layout and your current backup routine can stay in place. The indexer is likely enough when the archive fits on its current storage and nothing in your workflow needs Orthanc to manage where files are written.

  • Write expectations: Confirm whether routing, anonymization, re-export or other workflows write into the indexed folder, because those operations depend on what Orthanc is allowed to change on disk.
  • Fixed location: A tree that stays on one storage location with no planned growth keeps the setup simple.
  • Existing backups: Your current backup job keeps protecting the original files without restructuring around Orthanc.
  • Database combination: Confirm which database version and plugin combination the Folder Indexer supports in your target Orthanc release before committing.
  • Switch trigger: Move to Advanced Storage only when one of the other situations on these tabs applies.

Check the indexer behavior and supported database combination in your Orthanc version, then read the Advanced Storage topic for the full configuration.

Limits to confirm before indexing a production archive

Indexing existing folders means Orthanc depends on files it does not own. Each of the limits below changes what the index can be trusted to show, so each should be confirmed in your environment with the plugin documentation or a test before a production archive is pointed at a folder.

Version compatibility with the core

The Folder Indexer depends on how the Orthanc core reads storage areas and parses DICOM. Orthanc 1.13.0, released on 2026-08-15, rewrote storage-area access and DICOM parsing and transcoding to improve caching and reduce memory use, and it followed 1.12.11 on 2026-04-14. Confirm that the plugin build you intend to run is supported on the exact core version you will deploy, and repeat the check at every core upgrade. Test the indexer against your target version first.

Orthanc NEWS file

Database version restrictions

The index that tracks indexed files lives in the same database as the rest of Orthanc, whether that is the built-in SQLite index or a PostgreSQL or MySQL plugin. Some storage and indexing features only work with specific database plugin versions, so the combination of core, database plugin and indexer must be checked as a set. Ask which database versions the indexer supports, and confirm the schema upgrade path before you choose the database.

Orthanc plugins

Network share latency and locking

If the DICOM folders sit on NFS, SMB or another network share, file scanning and reads depend on latency and on how the share handles file locks and change notifications. Slow or intermittent mounts can leave the index stale or cause reads to fail mid-study. Measure scan time on the real share with your full file count, and confirm how the indexer behaves when the mount drops and returns.

Corrupt and non-DICOM files

A folder used by other systems often contains files that are not DICOM, partially written files, or DICOM files with malformed headers. Confirm what the indexer does with each case: whether it skips the file, logs it, or stops the scan, and whether a bad file can make a whole study unavailable. Plan a test set with known bad files and check the logs before you trust the counts.

Deletion when files change outside Orthanc

Because Orthanc does not own indexed files, a file removed, moved or overwritten by another process is a case the index must handle. Confirm whether a removed file disappears from the index on the next synchronization, whether a study can be left pointing at missing data, and whether Orthanc will delete a file from the folder when you delete the study through the API. Test each case before you give users delete rights.

Sharing one folder across instances

When several Orthanc instances read the same folder and share one database, each instance must agree on what is indexed and when. Confirm which instance performs synchronization, how a second instance sees changes made by the first, and whether two instances can index the same file at once. This affects the multi-instance setup described in the high availability guidance.

How much effort and time does indexing existing DICOM folders take?

What drives the effort of indexing existing DICOM folders?

Effort rises with the size and file count of the folders, the number of separate folders and shares, the storage technology behind them, the database you choose, and how much validation the engagement covers. A few hundred thousand instances, a dozen folders on one local disk and a short validation pass sit at the simple end. Many terabytes across network shares, mixed folder layouts, unreadable or duplicate files, and a validation scope that includes viewers and downstream systems sit at the other end. Ask the partner which of these factors their quote assumes, and whether the scan of the folders is included or priced separately.

Can an internal team index existing DICOM folders alone?

Often yes, if the team already runs Orthanc, understands its configuration file and plugin loading, and has someone who can read DICOM headers and handle malformed files. The work is mostly configuration, a test run on a copy of the data, and careful review of results. Teams without that experience usually find the hard part is the unknowns: inconsistent folder naming, duplicate studies, and files that Orthanc rejects. Be honest about who will own the setup after go-live, since that person needs the same skills during every later change.

What does the client need to provide before indexing starts?

Typically the work needs:

  • Read access to the source folders from the machine running Orthanc, through a local mount or a network share with a stable path
  • A dedicated service account with read-only permissions on the folders, and a plan for rotating its password
  • A representative copy of the data for test runs, including known problem cases
  • A maintenance window or agreed change period for the cutover
  • A decision on the index database, such as the built-in SQLite index or an enterprise engine like PostgreSQL, since the official guidance recommends replacing SQLite for large datasets

Confirm each item against your own environment and your security team's rules before scheduling.

Does indexing existing DICOM folders change the source files?

The Folder Indexer is designed to publish files where they already are, so the intent is that the source folders are not copied into Orthanc storage. Confirm this for your installed version in the Orthanc documentation before go-live, and test it on a copy, because the exact behavior depends on the plugin and on which other storage options are enabled. Also confirm whether Orthanc writes any metadata, sidecar or index files into the source folders, and whether any later delete action in Orthanc can remove files from those folders. Treat the answer as a question for the test plan, not an assumption.

What recurring work remains after the folders are indexed?

Indexing is not a one-time event if the folders keep receiving new files. Plan for continuous synchronization checks, monitoring for failed or skipped files, and handling of new folder layouts from upstream systems. Orthanc upgrades also need regression checks against the indexed data, and database maintenance, backups of the index, and capacity reviews recur as the archive grows. Ask a partner whether these tasks are in the initial scope, offered as a retainer, or left to your team.

How is a fixed-scope indexing engagement quoted?

Most engagements are fixed-scope, so the quote follows from a written scope agreed before work starts. Ask for the scope to list the folders and shares covered, the expected file count and total size as measured by a scan, the database choice, the test and validation steps, the cutover plan, and the deliverables such as configuration, runbook and handover notes. Ask what is excluded, how changes to the scope are priced, and which costs are one-time and which recur under support. DeployOpen does not publish a price list, so compare quotes on the written scope rather than on headline figures.

How DeployOpen scopes and delivers folder indexing for Orthanc

DeployOpen plans, builds, documents and supports self-hosted open-source platforms inside your own infrastructure, so an Orthanc folder index runs where your DICOM files already live. Engagements start with a written scope that states which folders are indexed, how changes are synchronized and what the storage footprint will be before any configuration changes are made.

How we scope

  • Inventory the existing DICOM folders, file counts, nesting depth and whether files change in place during indexing.
  • Agree in writing which folders Orthanc will index, which stay read-only and who owns each path.
  • Record the storage footprint and the database engine choice, with the reasons for each, before build work starts.

How we build

  • Configure the Folder Indexer plugin on a test instance and confirm that studies appear without copying files.
  • Set up continuous synchronization for the agreed folders and test how new, changed and removed files are picked up.
  • Test the Advanced Storage indexer mode against the same folders where the written scope calls for it, and record the differences.

How we hand over

  • Deliver configuration files, folder mapping, runbooks and a record of the test results against the agreed scope.
  • Walk your operations and security teams through permissions on the indexed folders, backup responsibilities and the steps to add a folder.
  • Document the conditions that would require moving to a different indexing approach or a larger database engine.

How we support

  • Ongoing support, Orthanc upgrades and continuous testing are available as retainers, scoped in writing.
  • Retesting after Orthanc core upgrades or plugin changes is included in the support scope when agreed.
  • Confirm with your vendor or Orthanc Team which plugin versions and Orthanc releases your environment will use before the build.

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.