Service logs¶
The Replicator Service writes what it does, and every error in full (ODBC diagnostics, SQL statement, connection), to its service log. The Monitoring page of the Data Replicator Manager (DRM) shows that log and the audit journal (who did what over the service interface), and downloads the log files or sends them to Stelo Support. For the messages of one run, see Replication events.
How it works¶
The Replicator Service sends each event to up to three destinations, each with its own minimum severity:
- Log File, the service log on the service host: information and up by default (warnings and up for scheduler, connection pool, license and network events).
- System Log, a copy in the Windows Application event log, or in the container log on Docker, for external monitoring tools: off by default.
- Email, once email is set up: as set on the Notification tab.
Besides the service log, the service keeps:
- a verbose log, which holds the full recordings of traced runs and periodic housekeeping;
- a crash log and an error log, with the stack of a crash or of a handled error, and crash dump files;
- the audit journal, in the control database: every request made to the service, by whom, and its result;
- a debug log, off by default, for Stelo Support and developers.
Changes to these settings take effect at once, without a restart. With Role Based Access Control on, your user must be allowed to read the audit journal to use the log tabs (see Role Based Access Control).
Service Logs tab¶
By default the tab shows Severe entries (errors only) of the last 24 hours, from the service, verbose and crash logs.
Filters¶
- Category is the part in brackets at the start of each message, such as the component that wrote it.
- Search loaded entries searches only the loaded entries: load earlier entries to search further back.
- Auto-refresh is off by default; on, it refreshes at the Update Speed of your Client Settings.
- A REC badge is a run you asked to trace from this page (see Tracing).
Log entries¶
Times are in your browser's time zone; hover for UTC, as written in the file. Source Trace is the verbose log.
- View trace around this error (warnings and errors) shows the verbose log, all levels, two minutes either side of the entry: what the service was doing then, if the run was traced.
- Trace this (record the next occurrence) (warnings and errors that name a group or subscription) records the next runs of that group in full. See Tracing.
The list loads the latest 200 entries, then 1000 more per Load earlier entries, back to the start of the time range. At most 2000 entries are loaded; for more, download the log files.
Log Files¶
Log Files lists the log files on the service host (times in UTC). For a file over 20 MB, only its last 20 MB are
downloaded. Crash dump files can't be downloaded: copy their path and fetch them on the service host. Download
support logs and Send Logs to Stelo collect a support bundle (a .zip file); see
Send logs to Stelo Support.
Logging settings¶
| Setting | Default | What to know |
|---|---|---|
| Forward to Windows Event Log / container log | Off | For a monitoring tool (such as SCOM or a SIEM) that watches the event log or the container log. The service log itself always records. |
| Service log size per generation (MB) | 10 | Also applies to the verbose log. 0 turns the service's own rotation off, for logs rotated by another tool. |
| Service log generations kept | 5 | The current file and the older ones (.1, .2, ...). |
| Audit journal retention (days, 0 = keep forever) | 7 | With 0 the journal grows without limit. |
| Debug log (dbprintf; mostly developer builds) | off | Only when Stelo Support asks. |
| Tracing | — | See Tracing. |
Except for the debug log and tracing, the same settings, with each destination's minimum severity, are on the Logging tab of Service Settings (see Service settings).
Audit tab¶
The audit journal: every request made to the Replicator Service, from the Data Replicator Manager, PowerShell or another client: who asked for what, from where, when, and with what result (for example, a changed setting or a deleted group).
The journal is recorded while Audit journal logging is on (see Audit Journal on the Logging tab of Service Settings), with or without Role Based Access Control; without it, the user isn't known. With access control on, the roles and groups decide which actions are journaled (see Role Based Access Control).
Elapsed Time is how long the service took to answer; Whence is the client's address; Message names what the request acted on.
- Export this page saves only the rows shown, as JSON: for other entries, change the filter, page or page size and export again.
- Delete All permanently deletes all audit journal entries, including those outside the current filters.
- Log Retention...: entries older than Retention Period days are deleted automatically (0 keeps them forever, not recommended). Max Records applies only with no retention period: the most entries loaded at a time (0 for unlimited).
DRM App Log tab¶
The log of the Data Replicator Manager itself: its web server and each browser session. Use it for problems in the web app rather than in replication (for example a page that doesn't load), or when Stelo Support asks.
- Clear Logs deletes all session log files and empties the server log.
- Changing File Level also changes the level shown.
Log files on the service host¶
Open these files directly when the Data Replicator Manager can't reach the service.
| File | Location |
|---|---|
| Service log, verbose log | C:\Users\Public\Documents\StarQuest\SQDR\Logs\sqdrsvc_service.log and sqdrsvc_verbose.log; older generations end in .1, .2, ... |
| Crash log, error log, crash dumps | C:\Users\Public\Documents\StarQuest\SQDR\CrashDumps\ (sqdrsvc_crash.log, sqdrsvc_error.log) |
| Support bundles | The temporary folder of the account the Replicator Service runs as, named <computer>_<MMDDYYYY>_<HHMMSS>.zip |
| File | Location in the container |
|---|---|
| Service log, verbose log | /var/log/sqdr/sqdrsvc_service.log and sqdrsvc_verbose.log (/var/tmp/ if /var/log/sqdr can't be written) |
| Crash log | /var/tmp/sqdrsvc_crash.log |
| Support bundles | /var/tmp/ |
With Forward to Windows Event Log / container log on, service log entries are also written to the
container's output, so docker logs and your container log driver see them. See
Manage the Docker container.
Each line of the service log starts with the time in UTC, the level, the category in brackets, and the thread and event numbers, followed by the message; further lines of the same entry are indented.
Windows event log¶
When Forward to Windows Event Log / container log isn't Off, the Replicator Service also writes its entries at that level and above to the Windows Application log, source SQDRSVC. The Service Logs tab has the same entries with more detail, so use the event log for monitoring tools rather than troubleshooting.