Documents and AI

Connect your document sources

Documents reach Logley three ways: uploaded in the browser, attached to mail in a connected mailbox, or dropped into a watched folder on the server. This guide sets up the watched folder — the route that keeps working without anyone opening Logley.

ABOUT 8 MINUTESTUTORIALFOR ADMINISTRATORSGETTING STARTED · STEP 3 OF 7

Logley principleWork with existing systems

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.

Goal

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.

The three ways documents reach Logley
RouteSet upBest for
UploadNothing: drag files into Upload in the product, up to 100 at a time.A first evaluation, and one-off documents.
MailboxAn IMAP mailbox in Settings — connect a mailbox walks through it.Invoices and notes that suppliers already send by email.
Watched folderA 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.
Upload, the route with nothing to set up: drop files in, and optionally give the whole batch a type, a supplier or tags.

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.

What Logley does
  • 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 .eml is 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.
What it does to the folder
  • A file of a type it does not take, dropped in while Logley is watching, goes to _rejected with a .error file 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 .eml that held a file it does not take goes to _processed with a .skipped file 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.
The folder after a morning’s drop: the originals filed by date under _processed, the one file it refused in _rejected with its reason.
Never point it at a folder people work from

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

The tab with no folder set: nothing is being watched, and it says where to set a folder, with your organization’s id in the examples.

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.

  1. On Windows, edit the settings file

    Open appsettings.Production.json in the api folder of the install directory (C:\Program Files\Logley\api by default) as an administrator, and add a FileWatch section beside the others:

    "FileWatch": {
      "WatchPaths": [
        {
          "Path": "D:\\Logley\\inbox",
          "OrganizationId": "00000000-0000-0000-0000-000000000001",
          "PollIntervalSeconds": 10
        }
      ]
    }

    Then restart the LogleyApi service from Services, or with Restart-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.
  2. With Docker Compose, set the environment

    The compose file already mounts a host folder into the API container at /app/watch: ./watch beside docker-compose.yml, or the folder named by WATCH_PATH in .env. Tell the API to watch it by adding these lines to the api service’s environment list:

          - FileWatch__WatchPaths__0__Path=/app/watch
          - FileWatch__WatchPaths__0__OrganizationId=00000000-0000-0000-0000-000000000001

    Apply it with docker compose up -d, from the directory that holds docker-compose.yml (/opt/logley with the Linux installer).

Check it in the product

  1. 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

    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.
  2. 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.
    Verify has checked the typed path and stored nothing. Save path stores it; Cancel, or Escape, keeps the old one.
  3. 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.

Your document source is connected

Indexing has started. As each document finishes, it becomes available to search, to ask questions about, and to drive rules and alerts.

GETTING STARTED · NEXT STEP 4 OF 7Build your knowledge base
Continue

Continue exploring

Was this guide useful?

If something was missing or unclear, the contact page says where to write.

Contact