DebugLogManager
Debug logging for any AWS resource, only while you need it
DebugLogManager turns AWS debug logging on for a resource only while someone needs it, shares it with the people on the ticket, and turns it off again by itself, putting the resource's own settings back. Admins decide once which services and regions may log; AWS enforces it.
It runs in your own AWS account, on one small instance in your tools account. People sign in with Microsoft Entra, and what each of them can do comes from four roles in its Entra app:
- AdminEverything: which services and regions may log, OU settings, the certificate.
- OperatorTurns logging on and off, and shares it, where it's allowed.
- OperatorElevatedAn operator, plus production OUs that need elevation, for example activated for a few hours through Entra Privileged Identity Management.
- UserYour engineers and developers: read, search and download the logs shared with them.
New here? Start with Install. The two videos on the home page show it end to end: the four-step install, and a tour of a day's use.
Admin Guide
Installing DebugLogManager, and deciding what may log
For the people who install DebugLogManager and run it: your Entra admin, your cloud team and DebugLogManager's admins. Pages marked Admin need the Admin role.
Install
The installer is the Set up on AWS page on debuglogmanager.com. It fills in every command from what you type, in your browser: nothing you enter is sent anywhere.
You need four things first: the tools account registered as a StackSets delegated admin for your organization, a subnet in it with outbound internet, a certificate for debuglogmanager.<your domain> from your company's CA, and a subscription on AWS Marketplace from the tools account.

For your Entra admin. Type your domain and, for each of DebugLogManager's four roles, the Entra group or groups that should have it: Admin, Operator, OperatorElevated (production, for example through PIM) and User (your engineers). A group that doesn't exist is created for you, empty; add its members in Entra.
Then run the command in Azure Cloud Shell. It creates the DebugLogManager enterprise app (SAML sign-in), gives each group its role, and prints the metadata URL for step 2. Show the script shows exactly what it runs.

For your cloud team, in the tools account. Paste the metadata URL from step 1 and the ARN of your subnet. The defaults allow your private networks to reach DebugLogManager; change them if you need to.
Choose the OUs DebugLogManager may reach (Find your OUs lists them) and the regions you use, then Launch stack. One stack creates the instance at a fixed private address and, through StackSets, a role in each account of those OUs that does nothing until an admin allows it.

For your DNS admin. The stack's outputs include WebIp, DebugLogManager's fixed private address, and the DNS line ready to paste. Add one A record for debuglogmanager.<your domain>: the PowerShell line for Active Directory, or the AWS CLI line for a Route 53 private zone.
The address never changes, so this is done once.

For a DebugLogManager admin. Open DebugLogManager's address. The first time, the browser warns that the connection isn't private: DebugLogManager is still using its own temporary certificate.
Check that certificate's SHA-256 fingerprint matches the stack's FirstVisitFingerprint output (How to check the fingerprint gives the commands, or click Not secure in the browser), then continue and sign in with Microsoft as an admin.

Until a certificate is loaded, DebugLogManager opens only its Install page, and only for admins; everyone else is told it's still being set up.
Upload it here, as a PFX with its password or as PEM files (certificate, key, and chain if you have one). Or, if you'd rather not handle the key in a browser, the AWS CloudShell commands beside it store it in the stack's secret directly; DebugLogManager picks it up within a minute.

Browse… to the file and type its password. OK turns on once both are in.
DebugLogManager checks the certificate before using it: that it covers DebugLogManager's address, that the key matches, and that it hasn't expired.

Press OK. DebugLogManager starts using the certificate straight away and opens itself again; the browser now shows the padlock, and the dashboard opens for everyone.
Thirty days before the certificate expires, admins see a banner to replace it, the same way.

Allowed sources
Allowed sources, in the Admin menu, decides what DebugLogManager may turn on, and where. Every account in scope has a DebugLogManager worker role, put there by the install's StackSet, that can do nothing until an admin allows regions and sources for it.
The tree is your AWS organization: its OUs and accounts, read from AWS. Select the organization, an OU or one account to see what's allowed there. An OU covers every account under it, including accounts added to it later.

Each row is a region your organization uses and each column a source: VPC Flow Logs, ALB access logs, Lambda and the rest (hover over a heading for its full name). A green tick is allowed in every account here, an amber tick in some of them (hover to see how many), and a grey ⊘ not allowed.
CWL, under Read, lets people search CloudWatch logs that already exist, such as your application logs; it turns nothing on, and is separate because application logs can hold customer data. Global sources (CloudFront, WAF for CloudFront, Route 53 public zones) are the columns on the far right, one cell for every region.
The settings above the grid (elevation and turn-off limits) are covered in Production and elevation.

Click a cell, or Change what's allowed in the OU, to open the same grid as checkboxes. Here: ALB access logs in eu-central-1, for the three accounts in Non-production.
The box on a region or a source does the whole row or column, and All does everything. A box showing – means some of the accounts: left as it is in each one unless you click it. Boxes you've changed are outlined.
If the change stops allowing something that's on now, the dialog lists it and asks you to turn it off from the dashboard first: once a source isn't allowed, DebugLogManager can't turn it off either.

DebugLogManager never changes its own permissions. The dialog writes the command, an update to the DebugLogManager-worker StackSet for that OU, and someone with StackSets access in the tools account runs it, for example in AWS CloudShell. Type your AWS CLI profile and it's added to the command.
AWS then enforces it: the worker role in each account can only touch the sources and regions allowed for it. Who ran the command is copied from the tools account's CloudTrail into the audit.

While AWS rolls the change out to each account, the OU shows AWS is applying a change… and the tree marks it with ⟳. DebugLogManager checks CloudTrail every minute, so the grid changes about five minutes after the command runs, and every account is read again hourly; Check AWS now reads them straight away.
Changes made some other way, directly with StackSets for example, show up the same way and are recorded in the audit as changed outside DebugLogManager.

Production and elevation
Select an OU in Allowed sources and its settings are above the grid. They apply to every account under it, unless an OU or account lower down sets its own.
Operators need elevation here: Yes means only OperatorElevated (or an admin) can turn logging on in it. Set it on your production OUs.
Turn off after (default) is the time the turn-on dialog suggests, and Turn off after (most allowed) the longest anyone may choose, for example 4 hours and 1 day in production, 1 day and 7 days elsewhere. Press Save; it's recorded in the audit.

In an OU that needs elevation, an operator's switch is locked. Hovering over 🔒 says why: activate the elevated group, then Sign in again.
Elevation is only needed to turn logging on. Any operator can turn production logging off, including a colleague's, because turning off only reduces what's exposed.

OperatorElevated comes from the Entra group you gave that role in step 1 of the install. Keep it empty most of the time. With Entra ID P2 (included in Microsoft 365 E5), make your operators eligible for it in Privileged Identity Management (PIM for Groups): they activate it for a few hours with a reason, and an approval if you want one. Without P2, an admin adds the operator for the job and removes them afterwards.
After activating, the operator presses Sign in again at the top. Roles arrive only at sign-in, so an elevated sign-in lasts an hour, and the top bar shows Elevated. Microsoft's guide: PIM for Groups.

The audit and its S3 bucket
Audit lists every sign-in, every time logging was turned on or off (with the resource's setting before and after), every change found made outside DebugLogManager, and every change to what's allowed.
Operators and admins see all of it. Everyone else sees their own sign-ins and the events of logs shared with them.

Choose the Period (today, the last 7 or 30 days, or the last year) and type into Filter to match who, what, the resource or the account. Times are UTC.

A turn-on or turn-off records the resource's logging setting as AWS reported it just before the change and just after: here the staging load balancer's access logs, turned on in Turning logging on. logs opens that session's logs, for anyone who can read them.
Who did it is the person's Entra sign-in name. Turn-offs DebugLogManager does by itself, at the end of the time limit, say so.

A change to Allowed sources is recorded when AWS has applied it, with who ran the command taken from the tools account's CloudTrail. A change DebugLogManager can't match to CloudTrail, made directly in the management account for example, is recorded as changed outside DebugLogManager, by unknown.

The audit isn't kept by DebugLogManager. Each entry is a JSON file in the install stack's audit bucket in your tools account, under events/YYYY/MM/DD/. The bucket is created with S3 Object Lock in Governance mode and a one-year retention, so for a year no entry can be changed or deleted, not even by DebugLogManager.
There's no export button because none is needed: read the bucket with aws s3 sync, query it with Athena, or point your SIEM at it.
Uninstalling DebugLogManager keeps the bucket. Removing it afterwards needs an admin with s3:BypassGovernanceRetention, which CloudTrail records; Uninstall gives the commands.

Certificate renewal
Install shows the certificate DebugLogManager is serving: the names it covers, who issued it, when it expires and its fingerprint.
Thirty days before it expires, every admin sees a banner on every page, and this panel turns amber. Ask your CA for the renewed certificate in good time.

Press Replace and load it exactly as at install: a PFX with its password, PEM files, or the AWS CloudShell commands beside it, which put it in the stack's secret directly. DebugLogManager checks it and starts using it straight away; nobody is signed out.
The Entra app's own SAML signing certificate expires too (three years after the install, by default). Admins get a banner beforehand: your Entra admin creates a new one and makes it active under Single sign-on → SAML Certificates. Nothing changes in DebugLogManager.

Uninstall
Deleting the install stack doesn't tell DebugLogManager, so start on its Install page. Prepare to uninstall turns off any logging still on, putting each resource's own settings back, and deletes DebugLogManager's log buckets and log groups now instead of 7 days after turn-off.
The panel counts what's still on and what's waiting to be deleted. The audit bucket is kept.

It asks first, because the logs in those buckets and log groups are deleted with them. DebugLogManager keeps running until you delete the stack, so you can check the dashboard afterwards.

When it says Ready, delete the DebugLogManager install stack in the tools account (CloudFormation → Stacks → Delete, or aws cloudformation delete-stack --stack-name <stack name>). That removes the instance, its network interface and address, both StackSets with the roles in every account, and the certificate secret. If anything couldn't be done, the panel lists it with the command to do it by hand.
Then delete the DebugLogManager app in Entra: App registrations → All applications → DebugLogManager → Delete, which removes the enterprise app with it (or az ad app delete --id <appid>, with the appid from the metadata URL). Leave the Entra groups: they may be used for other things. You can also remove the DNS record.
The audit bucket stays, each entry locked for a year after it was written. To remove the bucket after that, empty it as an admin with s3:BypassGovernanceRetention (CloudTrail records it), then delete it.

User Guide
Turning logging on, sharing it, and reading it
For operators, who turn logging on and share it, and for the developers and engineers who read what's shared with them.
Dashboard and filters
The Dashboard opens on Logging: every resource that can log in the accounts you can reach, the ones that are on now first, with how many are on in the tab's name. History lists what was turned off whose logs can still be searched, for 7 days after turn-off.

Show starts on All every time, and narrows the list: On; Off, everything that could log and isn't; and Needs attention, a step that failed or logging changed outside DebugLogManager, with a count when something is waiting.
The filters above it (Service, Organization, Account, Region) narrow any of them. Those are remembered for you, on any browser; Clear filters puts everything back to All.

Started by me lists what you turned on yourself, whether it's still on or already off, the ones that are on first. Every row says who started it.

Each row says when logging turns off by itself, and how many people it's shared with. Extend moves the turn-off time, within the longest your admins allow for that OU. The switch turns it off now.
Rows with 🔒 are logging DebugLogManager didn't turn on, such as a bucket your team set up: shown so you know it's there, and left alone.

What you see is checked against AWS every few minutes; Check now does it straight away. If someone changed a resource outside DebugLogManager (turned its logging off, or pointed it elsewhere), the row is listed under Needs attention and says what changed. DebugLogManager never changes it back by itself: Mark as off closes its record, and the switch can turn it on again.

Turning logging on
Operators start on the Dashboard. Set Show to Off and the list shows every resource in your accounts that could log but isn't: load balancers, functions, VPCs, distributions and the rest, across every account and region you can reach.
Narrow it with the filters: Service, Organization (an OU), Account and Region. Your filters are remembered for you, on any browser, until you change them or press Clear filters.

Or type part of its name. Here the ticket is about checkout failing in staging, so the operator looks for the staging load balancer.
Each row shows the account and region under the resource's name, what it is, where logs would go, and a rough cost per day of logging it, from its recent traffic.

The switch at the end of the row turns logging on. A locked switch means you can't turn it on here: the source isn't allowed in that account and region, or the OU needs elevation (see Production and elevation). Hover over it to see which.

Nothing happens yet. The dialog lists every step DebugLogManager will take, in order: the S3 bucket or log group it creates, the setting it changes on the resource, and how it will undo each of them.
It also shows the rough cost per day, from the resource's traffic over the last 24 hours at AWS list prices.

Every turn-on has a turn-off time. Pick how long you need it; the choices are the ones your admins allow for that OU, and in production there's often just one.
When the time is up, logging turns off by itself and the resource's own settings come back. The logs are kept for a week, then deleted.

Type the work email of the person on the ticket, or pick a group, and Add. They can read these logs, search them and download what matches, and nothing else: no AWS access, no other logs.

Turn on runs the steps, each one ticked off as it finishes. If one fails, the row moves to Needs attention with the step and the reason, so nothing half-done goes unnoticed.
Every step, with who started it, goes into the audit.

Open any row to see its panel: Steps (what was done, and what will be undone), Share (who can read it; add or remove people), and Copy link, to paste into the ticket. The link opens this row for whoever it's shared with.
The row also says when logging turns off; Extend moves that, within what your admins allow.

Sharing
Open the row and choose Share. It lists who can read these logs and until when: the logs' expiry, 7 days after turn-off, unless you picked an earlier date. The × beside someone takes it back at once.
Only operators share. The people you share with can read, search and download these logs, nothing else: no AWS access, no other logs, no switches.

Add a person by their work email, as on the ticket; Check confirms who it is before you add them. Or a group: the Entra groups assigned to the DebugLogManager app, so a whole team can read without adding people one by one.
Until is optional: leave it empty and it lasts as long as the logs.

Copy link copies a link to this row. Paste it into the ticket: whoever it's shared with opens it straight to these logs. Anyone else is told they can't read them.

Searching and downloading
🔍 at the end of a row opens the search, for any logs you can read. Choose the time window, then type text or a regular expression, or leave it empty for every line. Ignore case does what it says; Tail 30 s keeps searching new lines as they arrive.

Press Enter or 🔍. Here 50[234] finds the 502, 503 and 504 responses. Above the matches it says how much it read and how long it took, and each match shows the file it came from.
AWS delivers some logs only every few minutes, so the newest minutes may not be there yet: the note above the results says how often for this kind of log.
![Search results for 50[234]](docs-img/dlm-13-searching-and-downloading-02.png)
Download saves the matching lines as a file, to attach to the ticket or open in your own tools.

