.LOG1

LOG1 File

Windows Registry Hive Log (.LOG1)
Ask a question
QUICK ANSWER

A LOG1 file is a Windows registry hive log that records modified registry pages so Windows can recover them after a crash. There is nothing to open inside it. Leave it alone - deleting it can corrupt the registry and stop Windows from starting.

Developer: Microsoft Corporation Category: System Files MIME: application/octet-stream
OPENS ON Windows
Related: .NOMEDIA · .DLL · .TMP · .LNK

On this page

19k+ extensions indexed
Last reviewed Jul 22, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the LOG1 file format?

A .log1 file is a write-ahead recovery log generated by Windows for a registry hive. These log files record the hive's modified ("dirty") pages so Windows can replay them and restore a consistent state after a crash or unclean shutdown. .log1 is a binary format.

Location of .log1 files

.log1 files are stored in the %SystemRoot%\System32\config folder by default and carry the hidden attribute, so in order to view them an appropriate folder view option must be activated.

.log1 as part of a larger set of files

.log1 files belong to a larger group of sidecar files paired with each registry hive. The companion log is .log2; together they implement a dual-logging scheme where Windows alternates writes between the two. The primary hive data lives in a .dat file - for example, NTUSER.DAT for the current user's hive. There is no .log3 file in this scheme.

Uses of .log1 files

.log1 files are updated whenever dirty hive pages need to be preserved before a flush to the main hive. They are essential for recovery after a power loss or unexpected shutdown, and are also helpful during system troubleshooting and program debugging. The dual .log1/.log2 alternating scheme was reworked in Windows 8.1; Windows exclusively manages these files and they should not be opened or modified by hand.

Security & safety

RISK: MEDIUM

The file itself is passive log data and not malware, but it is a PROTECTED system file: normally hidden, in use by Windows, and owned by SYSTEM/TrustedInstaller. Do NOT delete, move, or edit .LOG1/.LOG2 files - they are part of how Windows keeps the registry crash-safe, and removing them can corrupt the registry and stop Windows booting cleanly. Ignore 'cleaner'/'optimizer' guides that tell you to delete them; the OS recreates and recycles them as needed. (A file with this extension in an unexpected, user-writable location could be something else masquerading - but in the registry folders it is exactly what it claims to be.)

Format details

in a nutshell
FULL NAMEWindows Registry Hive Log (.LOG1)aka Registry hive transaction log, Registry recovery log
DEVELOPERMicrosoft Corporationsince Windows registry hive logging; the .LOG1/.LOG2 dual-logging scheme dates to Windows Vista/7 and was reworked in Windows 8.1 (2013)
CATEGORYSystem Files
MIME TYPEapplication/octet-stream
TYPEWrite-ahead recovery log for a Windows registry hive (binary, internal) - paired with .LOG2 in the dual-logging scheme
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
72656766
ASCII
regf
A .LOG1 begins with the "regf" base block (like the hive it serves), with a sequence/flags field marking it as a log. It is NOT a document; identify it by name (hivename.LOG1) and by living next to a registry hive, not by treating the header as user content.

Programs that open LOG1 files

Windows1 app
Windows (operating system) - no manual opener Built-in There is nothing to open. Windows reads/writes and replays these logs automatically at boot; leave the files in place.

Technical details

deep spec
File signature (magic bytes)regf (hex 72 65 67 66) at offset 0 - the same base-block signature used by the hive it serves
Byte orderLittle-endian
EncodingBinary - not human-readable; requires registry-aware forensic tools to parse
Typical file sizeA few KB to several MB, depending on how many dirty hive pages are pending flush
EncryptionNone - protected by Windows file-system ACLs, not user-level encryption
Default location%SystemRoot%\System32\config\ alongside the hive file it serves
Dual-logging schemeAlternates with .LOG2 - Windows writes dirty pages to .LOG1 and .LOG2 in turn, so one log is always valid even if the other write is interrupted
Associated hive filesCompanion to SYSTEM, SOFTWARE, SAM, SECURITY, NTUSER.DAT, UsrClass.dat and other registry hive files
Recovery mechanismDirty-page replay - on next startup after an unclean shutdown, Windows reads logged HBIN pages from .LOG1 (or .LOG2) and writes them back into the hive
File attributeHidden system file - not visible in default Explorer or folder views without enabling hidden/system file display
Integrity verificationBase block and log entries carry sequence numbers and checksums; torn or stale writes are detected and skipped during recovery
Dual-logging historyThe .LOG1/.LOG2 alternating scheme was significantly reworked in Windows 8.1 (2013); earlier Windows Vista/7 used an earlier dual-log variant
MIME typeapplication/octet-stream
Internal structureregf base block followed by dirty HBIN (hive bin) page records; internal format is undocumented for end users
Operating systemsWindows Vista, Windows 7, Windows 8/8.1, Windows 10, Windows 11
ReleasedWindows registry hive logging; the .LOG1/.LOG2 dual-logging scheme dates to Windows Vista/7 and was reworked in Windows 8.1 (2013)
Latest versionSame hive log-format family (HBIN/dirty-page logging) in Windows 8.1/10/11; internal and undocumented for end users
Specificationlearn.microsoft.com

LOG1 conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with LOG1 files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about LOG1 files.

Frequently asked questions

What is a LOG1 file?
It's a Windows registry hive log - an internal system file Windows uses to make registry changes crash-safe by recording the hive's modified pages so they can be replayed after a crash. It's not a document.
Can I delete LOG1 files?
No - leave them alone. They're protected system files tied to your registry's integrity, and deleting them (or the paired .LOG2) can corrupt the registry and stop Windows starting. Windows manages them automatically.
How do I open a LOG1 file?
You don't - there's nothing user-readable inside. It's an internal binary registry log, not a document. Windows reads and replays it automatically at boot; opening it in an editor just shows binary noise.
Why can't I delete a LOG1 file (file in use)?
Because Windows keeps the registry hive and its logs open at all times. The 'file in use / access denied' error is the OS protecting an active system file - that's expected; don't force-delete it.
What's the difference between .LOG1, .LOG2, .LOG and .regtrans-ms?
.LOG/.LOG1/.LOG2 are a hive's own dirty-page recovery logs (the .LOG1/.LOG2 pair alternates since Windows 8.1). The .regtrans-ms/.blf files are a separate CLFS/TxR transaction-log mechanism. All keep the registry crash-safe; none is meant to be opened.
Are LOG1 files a virus?
No. Next to registry hives (System32\config) or NTUSER.DAT they're legitimate registry logs. Be suspicious only if one appears in an odd, user-writable location - then scan it, but the format itself isn't malicious.

References

1Microsoft Learn - Registry hiveslearn.microsoft.com
2Microsoft Learn - Structure of the registrylearn.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.NOMEDIAAndroid No-Media Marker File
8.MDMarkdown Document
9.TMPTemporary File
10.RPMSGRestricted Permission Message

Related extensions

.NOMEDIAAndroid No-Media Marker File
.DLLDynamic Link Library
.TMPTemporary File
.LNKWindows Shell Link (Shortcut)
.PKGmacOS Installer Package
.ETLEvent Trace Log

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z