First-time setup
LogWizard has not been set up yet: there is no LogWizard administrator, so nobody can sign in. The first LogWizard administrator is created on the server itself. Only someone with access to the server can do this.
- Run the setup command on the server, from the application folder:
node scripts/bootstrap-super.js --tenant <tenant-id> --name "<Company name>" --email <your email>
The tenant id is a short lowercase name such asacme-corp. If the tenant already exists, the administrator is added to it. - Open the invite link the command prints (valid for 7 days, one use), then set your password and, if asked, your authenticator app.
- Refresh this page and sign in with your email and password.
- Add your first application as that administrator: open System Settings, choose Add application, enter the company's read-only AWS key in Step 1, then discover its log groups.
Full details: docs/login_account_process.md, "First-time setup".
Health Summary
Key Rotation Status
Quick Search
Search Logs
Choose what you are searching for, or leave it on Auto-detect. A mobile number is found in every format (27…, +27…, 0…). With “Only named field” ticked, lines that merely contain the text are hidden — untick it to see them. Leave the box empty to see the top 5 sessions with errors (most errors first), each with its whole Session Path; click “View error logs” on a session to list its log lines (tick “Include healthy log lines” to list its healthy lines as well). If left blank, From/To default to the last 24 hours.
AI Insights
Ask about errors, patterns, or specific log lines for the selected application within the chosen time range. The assistant searches real log data before answering.
AI-generated from log data only -- verify before acting on it.
Q & A
What is LogWizard?
LogWizard is a tool for browsing, searching, and analyzing your application's CloudWatch logs across AWS accounts without needing direct console access -- covering health monitoring, saved/templated searches, free-text search, session path visualization, and AI-assisted log analysis.
How is the Health status calculated?
Health is based on the ratio of ERROR-level log lines to total log lines in the selected time window: Healthy at or below the app's configured error-rate threshold, Degraded up to 3× that, Unhealthy above it, or Unknown if there was no traffic in the window. See the note under the Health Summary tile for the exact numbers.
What's the difference between CloudWatch Logs, X-Ray, RUM, and LogFolder?
CloudWatch Logs
Messages the application writes about its own activity, in plain language — e.g.
"[error] : DXL request failure". The most detailed source, since it
explains things in the app's own words.
X-Ray
Tracks each step a request takes through the system (one service calling another) and
marks exactly which step succeeded or failed, and how long each one
took. Shows where something broke, not why.
RUM (Real User Monitoring)
Captures what happened on the user's own device or browser — for example,
whether a page failed to load, an error was shown, or something broke in the browser
itself.
LogFolder
Reads the same kind of log lines as CloudWatch Logs, but from a local or shared folder
instead of AWS — an offline alternative for an application whose logs aren't (or
can't be) shipped to CloudWatch. Takes priority over CloudWatch Logs when both are
enabled for an application.
Whether Cloudwatch, X-Ray, RUM, and LogFolder are enabled for the currently selected application is shown under the Health Summary tile (green = enabled, dark grey = disabled).
What are Pre-configured Searches?
Ready-made analyses -- like ranking the top errors affecting the most users, or finding the error that blocked a specific user's journey -- that would otherwise require hand-writing a CloudWatch Logs Insights query.
How does Search Logs matching work?
Search always matches any text in the raw log line (e.g. an MSISDN, session ID, or keyword), since which field holds that value varies by service. Use the journey filter and time range to narrow results.
What does the Session Path diagram show?
A visual, step-by-step path through the application's services, in order, with counts and timestamps at each hop -- useful for spotting where a journey stalled or errored. LogWizard looks in the log lines for a field that ties them together (a session ID, request ID, customer ID or mobile number, whatever your application logs) and draws one row per value, errors first. Use the "Group by" list above the rows to pick another field, or to group only by gaps in activity.
Can I trust the AI-generated content?
Treat it as a starting point, not a verdict. AI Insights and error-detail narratives are generated from real log data by an AI model, but can still be incomplete or wrong -- always verify against the underlying log lines before acting on them.
Why am I being asked to log in again?
Your LogWizard session ends after 30 minutes of inactivity, or 8 hours after you logged in. Log in again with your email, password and (if enabled) authenticator code, and your request will automatically retry. You never log in to AWS yourself -- LogWizard uses your company's read-only AWS key for the selected application.
Error Demo
Generate sample activity for the demo application and watch LogWizard pick it up in Health, Search, the Service Map, AI Insights, Fix Code and the status report. Steps 1, 2, and 5 always succeed. The others fail on purpose, each in a different place: 3 in the page itself, 4 in the back-end, 6 in an external system the back-end calls, 7 in an external API the browser calls directly, and 8 in the network (the request never reaches the back-end), so the error chains can show where each problem started. Every click is saved as a standardised entry in your company's own demo data, which the demo application reads live. Other companies have their own separate demo data; colleagues in your company share yours.
Service Map
The selected application's live service topology from AWS X-Ray (read-only) — each box is a service and each arrow is a call between them, coloured by how many of those requests failed ( faults exceed this app's error-rate threshold, some errors/faults, healthy, no traffic in the window). Hover a box or arrow for request/error counts and average latency, or click a service to drill into its recent traces and their error detail. Nothing here is written back to AWS or to config.
User Journeys
Stitches the selected application's recent AWS X-Ray traces (read-only) into per-user journeys — every request sharing the same correlation value (a session id, MSISDN, or subscriber id, whichever the traces carry) grouped together and ordered in time, so you can follow the whole path one user took across many requests. Journeys with failures are listed first. Click a step to open that trace's full X-Ray segment detail. Nothing here is written back to AWS or to config.
System Settings
Tenant configuration
Application limits
The maximum number of applications each tenant may have. This is linked to billing and only a super user can change it. Every change is recorded in an audit log. New tenants start with a limit of 1.
| Tenant | Applications used | Limit | Last changed |
|---|
Recent changes
Source code hosts
The GitLab servers each tenant's applications may read source code from, for Fix Code and Create Report. A tenant's admins can connect a repository only on a server listed here, so LogWizard never calls an address you haven't approved. Only a super user can change this, and every change is recorded in an audit log.
Enter only the server name: the part between https:// and the first
/. For a project at
https://gitlab.com/my-group/my-project/-/tree/main enter gitlab.com; for a
company GitLab at https://gitlab.example.co.za/team/app enter
gitlab.example.co.za (add :port if it isn't 443). You may also paste the
whole address; only the server name is kept. Groups, projects and branches are chosen per
application, and each application can read only the project its own token allows.
| Tenant | Allowed servers | Add a server |
|---|
Recent changes
Tenant access
Suspending a tenant stops its users from signing in, and anyone signed in is logged out on their next action. Its applications, settings and data are kept, and Enable restores access straight away. A reason is required, and every change is recorded in an audit log.
| Tenant | Status | Last changed |
|---|
AI service
Where AI features (AI Insights, Fix Code, reports, headlines) send their requests. Each application uses one of two places, chosen in its own AI (Bedrock) step: LogWizard's Bedrock Account (Central Acc) (this server's own Amazon Bedrock, the default) or a Tenant's Bedrock Account (the company's own Bedrock account, whose key is entered below). Reading logs always uses each application's own logs key, never these. Only a super user can change this.
LogWizard Bedrock Account (Central Acc)
Tenant's Bedrock Accounts
Optional, one per tenant: the access key of the IAM user logWizard_Bedrock (bedrock:InvokeModel only)
in the account whose Amazon Bedrock the tenant's AI should use. Until a key is saved and verified here,
"Tenant's Bedrock Account" is greyed out in that tenant's applications.
| Tenant | Tenant's Bedrock Account | Applications using it |
|---|
AI usage (tokens)
For billing the central AI cost. Counted from every successful AI call; never includes prompts, answers or log text.
| Tenant | This month | Last month |
|---|
Key rotation
Every AWS key and token saved for must be rotated every 90 days. The age counts from the day the key was saved in LogWizard. To rotate one, create a new key, enter it on the screen named in the last column (it is checked before it is saved), then delete the old key where it was created.
| Application | Key | Saved | Saved by | Status | Where to rotate it |
|---|
LogWizard's own keys
| Key | Saved | Saved by | Status | Where to rotate it |
|---|
Recent key changes
Application status report
A status report of every application of your company: its health over the last 24 hours, its top 2 errors (what they are, who is affected, the likely cause, who investigated them) and the last 3 fixed, followed by the company's totals. When it is switched on, admins see a Status Report button on the Health page. The e-mail holds a link to the report, which works for 30 days; the newest 30 reports are kept.
Recent reports
| Sent | Status | By |
|---|
Email service
How LogWizard sends the application status report e-mail: through Amazon SES in LogWizard's own AWS account, on port 2587 (the normal mail ports are blocked at Vodacom). SES has no mail server in af-south-1, so the default is eu-west-1. The e-mail holds only a link to the report and a short status line. Only a super user can change this.
Product name and logo
The name this installation shows on every screen, in e-mails and reports, in messages and in the authenticator app. It applies to all companies on this server. The default is LogWizard. Only a super user can change this.
Add tenant
Onboard a new company (tenant) and its first administrator. It's added to
config/tenants.yaml only — never anything in AWS. The admin
gets a one-time invite link to set their own password.
Add application
Create a new application without editing files. It's added to
config/apps.yaml only — never anything in AWS. After it's created,
use the application-configuration steps below to enter its AWS key and discover its log groups.
Application configuration
enabled · disabled
AWS access (logs) Required — do first
This application's own logs key (the IAM user logWizard_Logs): it reads CloudWatch logs,
X-Ray and RUM only, and is never used for AI. Verify credentials confirms the key works and
shows which account it authenticates as (read-only sts:GetCallerIdentity — it needs no IAM permission of
its own). If the resolved account doesn't match the accountId already in config, that's
flagged as a mismatch to fix.
Enter or update this application's logs key
Enter the access key of logWizard_Logs made for this application. It's verified against AWS
(read-only sts:GetCallerIdentity), then saved encrypted on
the server (under ~/.logwizard, never in config or the browser) and
used immediately — no server restart. Stored against this app's configured
key names ().
Source code repositories (GitLab)
Fix Code and Create Report search these GitLab repositories for the failing code. An application can have up to 30 repositories, all on the same GitLab server and read with one shared token. LogWizard only reads from GitLab. A user who chooses a folder on their own PC under User Settings is searched there instead.
Which token to use. One token is shared by all the repositories below, so it must be able to read every one of them:
- One repository: a project access token on that project is fine (Settings > Access tokens on the project).
- Two or more repositories: a project access token reads only its own project, so use either a group access token on a group or subgroup that holds only these repositories (a group token reads every project in its group and subgroups, so don't create it on a group that also holds other code), or a service account (or a user created just for this) added as a member of only these repositories, with its own personal access token.
- Role:
Reporter(the lowest role that can read code). Higher roles aren't needed. - Scopes:
read_apiandread_repositoryonly. Never a scope that can write, such asapiorwrite_repository. - Expiry: set an expiry date and enter the new token here before it runs out. The token is saved encrypted on the server and never shown again.
Repositories
Open each project in GitLab, copy the address from the browser and paste it above (several at once, one per line). LogWizard adds a row for each; check the project and branch and change anything that isn't right. All repositories must be on the GitLab server chosen above. Repositories whose name matches the failing service are searched first.
| Project (group/project or ID) | Branch or tag (optional) | Last check |
|---|
What goes in each field (example)
For a project you open in the browser at
https://gitlab.com/my-group/my-project/-/tree/main:
| Source code hosts (super, once per company) | gitlab.com |
|---|---|
| GitLab server | gitlab.com, chosen from the list |
| Path on the server | blank. Only a company GitLab installed under a path (e.g. https://git.example.co.za/gitlab/...) needs one, here /gitlab. It can't be read from the address, so enter it yourself in that case. |
| Project | my-group/my-project: everything between the server name and /-/, including any subgroups |
| Branch or tag | main, or blank to use the project's default branch |
| Token | one repository: a project access token on my-group/my-project; several: a group access token on a group holding only them. Role Reporter, scopes read_api and read_repository |
Branch or tag. Each team names its own branches. Common ones are
main or master (usually the default), develop, test,
qa, staging and release branches such as release/2.1. A tag marks a
fixed version, e.g. v2.3.0. The real names are in the branch drop-down at the top of the
project's page in GitLab, or under Code > Branches and Code > Tags. Choose the
one that matches the code running in this application's environment (e.g. qa for a QA
application). Save & verify checks that it exists in every repository.
AI (Bedrock)
Where this application's AI requests (AI Insights, Fix Code, reports, headlines) run. Log excerpts sent for AI analysis are processed in that place. Reading logs never depends on this choice.
Integrations Required
Enables or disables Cloudwatch, X-Ray, RUM, and LogsFolder as error-log sources for the
selected application in LogWizard's own config (config/apps.yaml) — this
never creates, changes, or deletes anything in AWS itself.
Hosts the customer's browser calls
Used to tell where a front-end error started: a failing call to one of the application's own hosts
that never reached the back-end is a gateway or network problem, a failing call to an external API is
that API's problem. A host is learned automatically when its calls lead into the application's traced
back-end (X-Ray). Linking front-end errors to the back-end also needs X-Ray tracing turned on for the
RUM app monitor. Your lists below always win over what was learned. One host per line, for example
api.example.co.za.
Discover CloudWatch Log Groups Required when Cloudwatch enabled
Lists log groups that actually exist in the selected application's AWS account/region
(read-only), to help keep config/apps.yaml's logGroups/journeys
up to date. Tick the log groups you want and Save log group changes to update
config/apps.yaml. Saving only affects the log groups currently shown here:
ticked ones are kept in config, un-ticked ones that are shown are removed, and any log groups
not shown (filtered out, or not fetched) are left unchanged — or copy the YAML and paste it
by hand. Only apps.yaml is written, never anything in AWS. The keyword filter below
only searches within whatever was already fetched, so narrow with the prefix filter first on
large accounts.
Suggested Journeys
AI-generated from log group names only — verify before
pasting into config/apps.yaml.
Discover X-Ray Services Optional
Lists the X-Ray services that appear in the selected application's service map over a recent
window (read-only), to help you set config/apps.yaml's
xray.serviceNames. This scope is optional — tick one or more services
and Save selected service scope to limit X-Ray to just those, or save none
(untick all) to search across all error/fault traces. Writes only apps.yaml, never
anything in AWS. Only services that emitted a trace within the lookback window appear, so widen
the window if a service you expect is missing.
Discover RUM App Monitors Required when RUM enabled
Lists the CloudWatch RUM app monitors that actually exist in the selected application's AWS
account/region (read-only), to help you set config/apps.yaml's
rum.appMonitorNames. At least one is mandatory whenever rum.enabled is
true — without one there is nothing for LogWizard to query, so RUM never returns
results. Tick one or more monitors and Save selected monitors to write them into
apps.yaml (never anything in AWS), or copy the YAML and set it by hand.
User Settings
Where Fix Code and Create Report look for each application's source code. By default they search the app's GitLab repository (connected by a tenant admin in System Settings). You can instead choose a folder on your own PC: it's searched here in your browser, only the matching lines are sent to LogWizard, and the choice is remembered in this browser only. Choosing a folder works in Google Chrome and Microsoft Edge only.
Manage Users
Users of your own company only -- add someone by email and pick which of your applications they can see, then copy their invite link and share it with them however you normally would (email, Teams, etc.). They use it once to set their own password.
Two-factor authentication
When on, every email & password user must set up an authenticator app before they can use LogWizard. Anyone who hasn't yet is prompted to enrol at their next login. If a user loses their device, use Reset 2FA on their row below so they can re-enrol.
Turning 2FA off does not delete anyone's 2FA setup. It simply stops being asked for, and it's asked for again at the next login once you switch it back on.