DSFX Send reports every search it makes (a C-FIND to the PACS or the worklist) and every send to PacsSwitch, which checks the reports and keeps them for years. DSFX Activity shows who searched for and sent which exams, from which workstation, to which destination, and with what result.
What you need
- The PacsLaunch add-on (license code PACSLAUNCH).
- The log is kept on the region's schedule server, or on a server that is not in a region. Members do not keep it; they only hand out its settings.
- HTTPS on the status web server (Web page security), with a certificate the DSFX Send workstations trust. DSFX Send delivers its events over HTTPS only.
- PacsSwitch 4.0.124 or newer, with
DTRS_Audit.exenext toDTRS.exe(the setup program installs it).
Turning it on
- Open Settings > Region > DSFX Send destinations... and click Audit log....
- Tick Receive and keep the DSFX Send audit log on this server.
- Optional: enter the workstation subnets that may send events, for example
10.20.0.0/16; 192.168.5.0/24. Empty means any address. - Choose how many years to keep the log (6 by default, 1 to 10).
- Click Save and choose Start a new log. PacsSwitch makes the keys and adds the audit address to nginx.
- Make a key backup when DSFX Activity asks for it (below).
DSFX Send reads its settings from https://<server>/dsfx_audit.json, next to the destinations file. In a region every member serves a copy, so a workstation can read it from its nearest PacsSwitch server. The events always go to the schedule server: https://<schedule server>/dsfx/audit.
What is recorded
- Searches: the PACS or worklist searched, the search keys, how many matches, the status and how long it took.
- Sends: the source and destination AE titles, the studies and every series sent (number, description, series UID and image counts), the result (success, partial, failed or cancelled) and the DICOM status.
- Program start, settings changes, and a queue_lost event when a workstation had to drop events (more than 30 days or 10,000 events could not be delivered).
- With each event: the time, the workstation, the Windows user, the program and its version (
app,app_ver), and a sequence number per workstation.
Patient details (names, IDs, birth dates, accession numbers, UIDs, descriptions) are encrypted on the workstation with this server's public key. Only DSFX Activity on this server can show them.
The checker
Every minute the monitor runs DTRS_Audit.exe -ingest, which reads what nginx received, checks each event and stores it in DSFXAudit\days (one file a day, each line chained to the one before, and a daily seal). An event that fails a check is still stored, with what was wrong:
| Check | Meaning |
|---|---|
bad_mac | The event was changed after the workstation signed it. |
unknown_key | Signed with a site key this server does not know. |
duplicate | The same event arrived again (it is stored once more, flagged). |
gap:N | N events of this workstation are missing (sequence numbers skipped). After a bad_mac or unknown_key event the next event also shows a gap, because a flagged event's number is not counted. |
seq_back | The sequence number went backwards (for example DSFX Send was installed again). |
clock | The workstation's clock is more than 24 hours off. |
bad_json, version, no_eid, no_time, phi_unreadable | The event is damaged or incomplete. |
Flagged events, checker problems and a missing key backup are written to the Windows Event Log (641, 642, 644) and, if the box is ticked, emailed to the alert recipients, at most once every 15 minutes.
From 4.0.126 the status page of the server that keeps the log shows a DSFX SEND AUDIT LOG line: on or off, receiving or not, the checker's last run, the events stored and flagged today, the last event stored and the key backup. Green means all is well, orange means events were flagged today or a key backup is needed, red means a problem (the line names it). status.json has the same in dsfx_audit_log, for monitoring tools. No patient details are shown in either.
DSFX Activity
Click DSFX Activity... in the Audit log window, or in Settings > Logs. It opens only from PacsSwitch, for the Windows user signed in.
- Filters: dates, program, version, workstation, user, action, result, from and to AE title, and the check result. A text filter finds the text anywhere in the field, or use
*and?. Patient details are not shown in the list. - Find a patient or exam: by accession number, patient ID, patient ID and issuer, study UID, series UID, patient name, birth date, or name and birth date. Names are typed as
LASTorLAST^FIRST(orLast, First).*stands for any characters and?for one character. Exact values and patterns with a*only at the end (SMITH*,SMITH^J*,SIM50*,1980*) search all years through a private search index on this server, so nothing is decrypted to search. Other patterns (*1234,SM?TH) open every event of the From/To dates, which is slower. A reason is asked for and recorded; the box offers the last reason given in this window. - Show patient details... decrypts the selected events after you give a reason. Every PacsSwitch administrator can do this; each time is recorded.
- Export CSV...: masked by default; full patient details only after you confirm (recorded, event 646).
- Check chain: checks that no stored line was changed, removed or added, day by day.
- Workstations: every workstation seen, its last event and sequence number.
Who looked at what is written to DSFXAudit\access\access_YYYYMM.log (one file a month, with the reason, kept for the same years as the log) and, without patient details, to Logs\capture_audit.log and the Windows Event Log (645-647).
Key backup
The keys are kept on this server, protected by Windows. If the server is lost, the log can only be read again with a key backup. In DSFX Activity click Key backup..., choose a passphrase (at least 12 characters) and a file. Keep the file and the passphrase in a safe place away from this server, and include C:\ProgramData\PacsLogic\DTRS4\DSFXAudit in the server's regular backup. Until a backup is made, PacsSwitch reminds you once a day (event 644).
Make a new key backup after New key pair...: the earlier backup does not hold the new key.
Moving the log to another server
When the schedule server role moves (Appendix I), the log moves with it:
- On the old schedule server: DSFX Activity > Export log.... The export holds every day, the index and the keys, sealed with a passphrase you choose.
- Hand over the schedule server role.
- On the new schedule server: Settings > Region > DSFX Send destinations... > Audit log..., tick the box, Save, and choose Restore a log.... Choose the export and enter its passphrase.
- Turn the log off on the old server.
After losing a server: restore the same way from a copy of the DSFXAudit folder (from the server backup) and the key backup file with its passphrase. The chain check runs after the import and reports any day that is missing or does not match.
DSFX Send workstations keep their events in their queues while the log is moving, and send them when the new server answers.
New key pair
Use New key pair... when the key backup or its passphrase may have been seen by someone who should not have it. New events are encrypted with the new key; older events stay readable. The settings DSFX Send reads are signed with both the old and the new key, so the workstations accept the change. Choose Key pair and site key to also replace the key the workstations sign their events with.
Files
| Path (in the data folder) | What it holds |
|---|---|
DSFXAudit\incoming\intake_YYYYMMDD.log | What nginx received, until the checker has stored it. |
DSFXAudit\days\audit_YYYYMMDD.jsonl | The stored events, one file per day of checking. |
DSFXAudit\index\ | The private search index. |
DSFXAudit\keys\ | The keys (protected by Windows) and the signed settings for DSFX Send. |
DSFXAudit\status.ini | The checker's last run. |
DSFXAudit\access\access_YYYYMM.log | Who used DSFX Activity and why, one file a month. Kept for the same years as the log, and moved with it by an export. |
Logs\dsfx_audit_YYYYMMDD.log | What the checker and the keys program did: how many events were stored and flagged, keys, backups, exports and imports. No event data and no patient details; kept for the days set in Settings > Logs. |
The DSFXAudit folder is open to SYSTEM and Administrators only, and is never put in a support bundle.
Related pages
- Appendix L. DSFX Send destinations file
- Appendix I. Moving the schedule server
- Web page security (HTTP and HTTPS)
- Appendix B. Log files and Windows Event Log IDs
This page was revised 2026-11-04.