Documents keep arriving the way they already do. A scanner, an export from another system or a colleague saving a file can put it in the folder, and nobody has to sort, rename or upload anything.
Set up one watched folder and see a document placed in it become searchable.
Choose a route
All three routes end in the same processing. They differ in what has to be set up first.
| Route | Set up | Best for |
|---|---|---|
| Upload | Nothing: drag files into Upload in the product, up to 100 at a time. | A first evaluation, and one-off documents. |
| Mailbox | An IMAP mailbox in Settings — connect a mailbox walks through it. | Invoices and notes that suppliers already send by email. |
| Watched folder | A folder on the server, defined in the server configuration, then checked in Settings. The rest of this guide. | Scanners, exports from other systems, and anything that should keep flowing in unattended. |
What a watched folder does
A watched folder is a drop zone. Logley notices a new file within seconds and checks the folder every 10 seconds in case it missed one. It copies the file into its own document storage, then moves the original out of the way so it is never read twice.
- Takes in every file of a supported type placed in the folder itself — subfolders are not read.
- Reads the formats Upload reads, up to 50 MB a file. A ZIP is unpacked and each supported file inside becomes a document; an
.emlis kept as correspondence and its attachments become documents. - Classifies and extracts it, and builds the index that search and answers read.
- Moves the original into
_processed, in a subfolder named by date.
- A file of a type it does not take, dropped in while Logley is watching, goes to
_rejectedwith a.errorfile saying why. One that was already there is left where it is. - A file with the same content as a document already in Logley is recorded as another arrival of that document and moved to
_processed, not taken in again. - A ZIP or
.emlthat held a file it does not take goes to_processedwith a.skippedfile naming what was left out. One that held nothing it could take goes to_rejected. - A file it could not take in for good (not a passing fault) also goes to
_rejected, with the reason.
Everything placed in a watched folder is moved. Aim it at a folder made for the purpose (a scanner’s output, an export target, an inbox folder people save into), not at a shared folder colleagues browse and edit. Their files would leave it.
Before you begin
- An administrator account in Logley
- Access to the server’s configuration — the settings file on Windows, the environment on Linux
- A new, empty folder on the server, or one the server can reach
- Permission for the Logley service to read, create folders and move files there
The service needs more than read access, because it creates _processed and _rejected and moves files into them. A network share works when the service’s account can reach it by its UNC path (\\server\share\…); a mapped drive letter belongs to a signed-in user and is not visible to a service.
Define the folder in the server configuration
An installed Logley has no watched folder until one is configured. Each folder needs its path and the organization its documents belong to. A fresh installation has one organization, and its id is 00000000-0000-0000-0000-000000000001; the tab shows the id of yours in its examples.
On Windows, edit the settings file
Open
appsettings.Production.jsonin theapifolder of the install directory (C:\Program Files\Logley\apiby default) as an administrator, and add aFileWatchsection beside the others:"FileWatch": { "WatchPaths": [ { "Path": "D:\\Logley\\inbox", "OrganizationId": "00000000-0000-0000-0000-000000000001", "PollIntervalSeconds": 10 } ] }Then restart the
LogleyApiservice from Services, or withRestart-Service LogleyApi.- Re-running the installer, which is how a Windows installation is updated, writes this file afresh. Keep a copy of your FileWatch section and add it back after each update.
With Docker Compose, set the environment
The compose file already mounts a host folder into the API container at
/app/watch:./watchbesidedocker-compose.yml, or the folder named byWATCH_PATHin.env. Tell the API to watch it by adding these lines to theapiservice’senvironmentlist:- FileWatch__WatchPaths__0__Path=/app/watch - FileWatch__WatchPaths__0__OrganizationId=00000000-0000-0000-0000-000000000001Apply it with
docker compose up -d, from the directory that holdsdocker-compose.yml(/opt/logleywith the Linux installer).
Check it in the product
Open Watch folder
In Settings, open the Watch folder tab, under Document intake. Your folder is listed under Folders; if the band under the tabs reads Not watching: no folder is set, the configuration was not picked up — check it and restart again.
Settings, then Document intake, then Watch folder
WatcherWatching
FolderFound
Files waiting0
Documents in the last 24 hours12
Watch for files
Logley reads the files dropped into the folders below. The switch applies at once.
OnFolders
Files dropped into a folder below are read automatically. Supported: PDF, PNG, JPG, TIFF, XLSX, CSV, DOCX, XML, ZIP, EML (max 50 MB).
Folder Exists Files waiting Checked every Actions D:\Logley\inboxYes 0 10 seconds Bank statements in MT940 or CAMT.053 are imported as payments, not read as documents.
The tab once a folder is configured — D:\Logley\inbox stands for yours. Exists, Files waiting and Checked every are per folder; the band counts the documents of the last 24 hours. Confirm it is being watched
The band should read Watching, and the folder’s row should show Yes under Exists. If the folder was missing, Logley creates it at startup when the service is allowed to; while no configured folder exists, the band reads Not watching: the folder was not found.
- The Watch for files switch pauses and resumes watching for your organization, at once. It holds until the API restarts, and watching resumes then. If it cannot be moved, the line under its name says why: there is no folder to watch, or watching is switched off in the server’s configuration.
- Change opens the folder’s path under its row. Type the path as the server sees it and press Verify, or Enter: it checks the path on the server and stores nothing, and says whether the folder was found, whether Logley can write to it and how many files it holds.
- Save path re-points the folder at once, to a location the configuration allows, and the row says Path stored. A path the server refuses is said under the row, with the box still open. To keep the new path after a restart, put the same path in the configuration.
Folders
Files dropped into a folder below are read automatically. Supported: PDF, PNG, JPG, TIFF, XLSX, CSV, DOCX, XML, ZIP, EML (max 50 MB).
Folder Exists Files waiting Checked every Actions D:\Logley\inboxYes 0 10 seconds Server-accessible path Enter the path as accessible from the server (UNC, mounted share, or local path).
Found, and Logley can write to it. It holds 3 files.
Bank statements in MT940 or CAMT.053 are imported as payments, not read as documents.
Verify has checked the typed path and stored nothing. Save path stores it; Cancel, or Escape, keeps the old one. Drop documents in
Copy a few supported files into the folder. Each one is picked up, classified into one of nine types and extracted, then indexed — with no sorting, renaming or filing on your part.
Confirm the result
On the Watch folder tab, Files waiting falls as files are picked up and Documents in the last 24 hours rises. In the folder, the originals appear under _processed. In the product, the documents are in the Documents list, each showing where it got to (what happens to a document explains every status). Once one finishes, asking a question about it returns it with the passage that matched.
A file Logley could not take in for a passing reason, such as a busy database, stays in the folder and is tried again. If the licence does not currently allow processing, files wait in the folder and are taken in once it does.
Indexing has started. As each document finishes, it becomes available to search, to ask questions about, and to drive rules and alerts.