Registry Transaction Logs Explained: What .LOG1, .LOG2 and .regtrans-ms Files Are and Why You Leave Them Alone


Last reviewed: November 25, 2026 (Pacific). Steps compared with Microsoft documentation where it exists; none was run on a real PC. The picture at the top is an illustration, not a screenshot.
Open a folder that holds registry hive files and you may see names that look like noise. You might see NTUSER.DAT next to NTUSER.DAT.LOG1, or a file ending in .regtrans-ms. These are registry transaction logs and their companion files. This guide explains what they are, how to look at them, and why this site says one thing only: look, do not touch.
Quick answer: what registry transaction logs are
Quick answer
- Registry transaction logs are companion files. They sit beside the main registry hive files.
- Microsoft's Registry Hives page calls a .log file a transaction log of changes to a hive's keys and values. It does not name .LOG1, .LOG2 or .regtrans-ms.
- The general idea is that a log helps Windows finish or undo an interrupted write. This is general explanation, not a Microsoft statement.
- You can look at these files with hidden and protected system files shown. You cannot back them up by copying them from a running PC.
- Do not delete, rename or edit them. For the basics first, read the registry explained: hives, keys and values.
In this guide
- Quick answer: what registry transaction logs are
- Which files sit beside each registry hive
- How a transaction log helps after an unclean shutdown
- How to look at these files without changing them
- Why copying these files is not a backup
- Why you should leave them alone
- Symptoms people connect to these files
- What disk cleaners and registry cleaners do with these files
- I see these files: what now?
- Windows 10 note
- Frequently asked questions
- How this guide was checked
- Sources
Which files sit beside each registry hive
A registry hive is a file that holds part of the registry. Microsoft's Registry Hives page says that most of the supporting files for the hives are in %SystemRoot%\System32\Config, which is usually C:\Windows\System32\config. The same page says the supporting files are updated each time a user logs on.
Where each user's hive lives
Each user also gets a hive of their own. The Microsoft page says a new hive is created for each user who logs on, with a separate file for the user profile. That user hive is loaded under HKEY_USERS. The per-user files are covered in how NTUSER.DAT and UsrClass.dat work, so this guide does not repeat that detail. For the HKEY_CLASSES_ROOT view, which draws on per-user data, read what HKEY_CLASSES_ROOT means.
The table below lists the file types you are most likely to see. Use it to recognise a file, not to act on it.
Common registry file types, explained
| File | What it is | Reader action: look only |
|---|---|---|
| Hive file with no extension, such as SYSTEM, SOFTWARE, SAM, SECURITY or DEFAULT | The main data for a hive, in the system config folder | Look only. Do not open, copy, rename or delete. |
| NTUSER.DAT | The per-user hive for a signed-in account, in the user's profile folder | Look only. Do not open, copy, rename or delete. |
| Files ending in .log, such as NTUSER.DAT.LOG or System.log | A transaction log of changes to the keys and values in that hive, as the Microsoft page describes .log files | Look only. Do not delete or rename. Do not use as a backup. |
| Files ending in .alt or .sav, such as System.alt or System.sav | Backup copies that the Microsoft page describes. It says .alt covers the HKEY_LOCAL_MACHINE System hive | Look only. Do not replace or delete. Real backup methods are a separate task. |
| Files named .LOG1 or .LOG2, such as NTUSER.DAT.LOG1 | Companion log files that appear on some current installs. General guidance: they hold recent changes. Not described on the Microsoft pages we opened | Look only. Do not delete, rename or edit. |
| Files ending in .regtrans-ms or .TM.blf | Container files that appear next to some hive logs. General guidance only. Not described on the Microsoft pages we opened | Look only. Do not delete, rename or edit. |
What the Microsoft page says about .log files
The Microsoft Learn Registry Hives page describes the supporting files in a table. For the HKEY_CURRENT_USER hive it lists Ntuser.dat and Ntuser.dat.log. For the System hive it lists System, System.alt, System.log and System.sav. The page describes a .log file as a transaction log of changes to the keys and value entries in the hive. It describes .alt as a backup copy of the System hive, and .sav as a backup copy of a hive.
Those are the statements we could confirm. The page explains what the files are. It does not tell a reader what to do with them.
What the Microsoft pages do not say
The pages we opened do not mention .LOG1, .LOG2, .TM.blf or .regtrans-ms. Microsoft's Registry files page covers files that programs create with registry functions, which save and load parts of the registry. It does not describe the log files that sit next to each hive. The Structure of the Registry page covers keys, subkeys and values. It does not cover files on disk.
So the newer file names in this guide come from general guidance. Treat them as a description of what you may see on your own PC, not as Microsoft's official list.
How a transaction log helps after an unclean shutdown
The explanation below is general, not a Microsoft statement. The Microsoft page we read describes .log files as transaction logs, but the text we read does not describe how Windows recovers a hive after a crash. Read this section as a model of the idea.
A registry change can touch more than one place. If the power fails in the middle of a write, the main hive file could be left half-updated. A transaction log is meant to prevent that kind of damage. The change is recorded in the log first. On the next start, the system can use the log to finish the change or undo it, so the hive ends up in a consistent state. For the SYSTEM hive's control sets, read the CurrentControlSet and control sets guide.
This is why the log files matter even though they are small and easy to ignore. They are part of the way the hive stays consistent. Deleting one can leave the system without what it needs to finish an interrupted write.
Normal shutdown, in general terms
- Change requested A program or Windows asks for a registry value to be written.
- Change recorded The change is written to the transaction log first.
- Hive updated The change is applied to the main hive file.
- Clean finish Windows closes the hive, and the log and hive agree.
Unclean shutdown, in general terms
- Change recorded The change is written to the log, as in the normal route.
- Power lost The PC stops before the hive file is fully updated.
- Next start Windows reads the log to finish or undo the interrupted change. This is general explanation.
- Problem case If a log is missing or damaged, a load error can appear. The symptoms section below lists the messages people report.
How to look at these files without changing them
Windows hides some files, and it protects operating system files from accidental changes. To see the hive and log files, you have to change File Explorer's view. The steps below are general guidance. We could not open a Microsoft Support page that confirmed the exact wording, so check the names on your own PC.
In File Explorer, open the View menu, choose Show, and turn on Hidden items. Then open the Options menu, choose Change folder and search options, open the View tab, and clear the box that hides protected operating system files. Windows shows a warning. Read it before you continue. Turn the protected-file setting back on when you finish.
Viewing a file name is the whole task. Do not open a hive file or a log in a text editor. Do not double-click it to see what it does. Hive files are not plain text, and a stray save can damage them.
You may also see access messages when a tool tries to read a file. Windows commonly keeps these files open while it runs, so a read or copy may be refused. If the message is about permissions, read the registry permission errors guide instead of changing the permissions yourself.
Why copying these files is not a backup
Some readers copy the whole config folder to keep a backup. That does not work well for hives and their logs. General guidance: a file held open by a running system may be refused, or the copy may be incomplete. A set of files copied at slightly different moments may not match each other. A restore from that set can fail in the same way the original did.
A proper backup uses methods that the system supports. The site guide on real backup methods for the registry explains them. Use that guide before any change, and keep your personal files backed up as well.
Why you should leave them alone
Some outside pages tell readers to delete these files to fix a problem. This site does not. The rule here is look only. There are three reasons.
First, these files belong to Windows and to the hives they support. Deleting or renaming one can stop a user profile or the system from loading. Second, the Microsoft pages we opened describe what the files are. They do not describe a repair that removes them. Third, the symptoms that send readers to these files usually have their own fixes, and those fixes do not start with deleting a log.
If you think one of these files is a problem, write down the file name, its folder and the date. Then read the symptoms section below and the guide that owns the message. If the PC is managed by an organisation, ask its administrator before any change.
Symptoms people connect to these files
Readers often link these files to error messages. The file names rarely appear in the message itself. Each symptom below has its own guide, and each guide owns its fix. This list is not a diagnosis. It only points you to the right place.
Event ID 1530 and a registry file that is still in use
A message that a registry file is still in use is covered in the guide on event 1530 and files in use. Read that guide for the message and its steps. Do not stop a process or delete a file because the event names one.
Error 1019 and no room in a registry log
A message about running out of space in a registry log is covered in the error 1019 registry log space guide. That guide owns the error and its fix. Read it before you change any storage or registry setting.
Error 0x800703F1 and a corrupt configuration database
A message about a corrupt configuration registry database is covered in the error 0x800703F1 guide. A corrupt message is a reason to stop and read, not a reason to delete files.
REGISTRY_ERROR and blue screens
A blue screen that names a registry error is covered in the registry error blue screen guide. Note the stop code and the time before you change anything. Blue screens can have several causes, and the guide sets out the order to check.
Windows cannot start the config system
A boot message about a missing or corrupt config system is covered in the guide on a missing or corrupt config system. That message is about the system hive, so it is a case where the files matter most. Read the guide and do not guess.
A user profile that will not load
A profile that will not load can involve the per-user hive. The fix is covered in the corrupt user profile guide. The owner of that fix is the profile guide, not this one.
Changes that do not stick
A setting that reverts after a restart is a different problem from a damaged log. It is covered in the guide on registry changes not saving or reverting. Start there before you suspect the log files.
For the wider picture of registry trouble, read the common symptoms of registry problems. If the PC fails in several ways at once, the general repair route is in the corrupted registry repair guide. Both are look-first guides.
What disk cleaners and registry cleaners do with these files
Disk-cleaning tools usually target temporary files and caches. Registry cleaners target registry entries that a tool judges to be unused. Neither type of tool is described on the Microsoft pages we opened, so we cannot confirm how any product handles hive logs.
We did not find a Microsoft page that says a registry cleaner handles these files safely. None of the pages we opened says that cleaning the registry speeds up Windows. This site does not recommend registry cleaners. A tool that deletes or rewrites hive files can cause the problems listed above.
A restore point is not a backup of the registry, and it is not a way to undo a bad cleaning run. Read whether System Restore restores the registry before you rely on one.
I see these files: what now?
Use this order for any file you find. It ends in a note, never in a deletion.
- Is the file in the system config folder, or in a user profile folder?
- System config folder: it belongs to a system hive. Look only. If Windows will not start, use the boot-message guide named in the symptoms section.
- User profile folder: it belongs to one user's registry. Look only. Use the per-user files guide named earlier in this guide.
- Neither: write down the path and do not move the file.
- Is there an error message on screen or in Event Viewer?
- Yes: find the matching symptom in this guide and follow the guide that owns it.
- No: the file is probably normal. Write a note of the name and the date, then stop.
- Do you think the file should be removed or replaced?
- Yes: do not do it. Ask the vendor or your administrator, and read the backup guide first.
- No: the decision is finished. Leave the file where it is.
Windows 10 note
Support for Windows 10 ended on October 14, 2025. Consumer Extended Security Updates run to October 12, 2027, according to Microsoft's Extended Security Updates page. The file names in this guide are the same on Windows 10 and Windows 11. For the rest of our troubleshooting library, see the PC repair guides.
Frequently asked questions
About the files
Are registry transaction logs the same as a backup?
No. A log records recent changes so Windows can finish or undo them after an interruption. It is not a copy you can restore from. For real backup methods, read the backup guide linked earlier in this article.
Can I delete a .LOG1 or .LOG2 file to fix an error?
No. This site's rule is look only. Deleting or renaming a log can stop a profile or the system from loading. Use the guide that owns the error message instead.
Why do I see a .LOG file but not a .LOG1 file on my PC?
Naming depends on the Windows version and on what has been written. The Microsoft pages we opened name .log files and do not name .LOG1 or .LOG2. Treat the newer names as general guidance, and check your own folder rather than assuming.
Is it safe to open a hive file in a text editor?
No. Hive files are not plain text, so the editor shows little that you can use. A stray save can damage the file. Look at the file name only, and leave the content alone.
Looking and symptoms
Why can I not copy NTUSER.DAT while I am signed in?
General guidance: Windows keeps this file open while it runs, so the copy may be refused or incomplete. A copy taken while the system is running is not a dependable backup. Use the backup methods described in the guide named earlier.
Do these files explain error 1019?
Not on their own. The log space error has its own guide, named earlier in this article, and that guide explains the message. The file names alone do not tell you what caused it.
Does a registry cleaner remove these files?
We did not find a Microsoft page that says so, and this site does not recommend registry cleaners. Before any tool runs, read what it will change. Never let a tool act on hive files without a clear reason and a backup.
What should I do if I see Event ID 1530?
Read the event 1530 guide named earlier. It covers the message and the steps it suggests. Do not stop a process or delete a file only because the event names one, and record the time of the event first.
How this guide was checked
We opened Microsoft Learn's Registry Hives page under the win32 sysinfo path, and read its supporting-file tables and its description of .log files. We also opened Microsoft Learn's Registry files page and its Structure of the Registry page. The windows-hardware path for Registry Hives returned a not-found page, so we used the win32 copy. We tried a Microsoft Support page for showing hidden files, and it returned a not-found page too. We did not confirm File Explorer menu wording on a Microsoft page.
We did not confirm the names .LOG1, .LOG2, .TM.blf or .regtrans-ms on any Microsoft page we opened. The locking, crash-recovery and container-file descriptions are general guidance. None of the steps was run on a real PC. The picture at the top is an illustration.