Line Format & Common Header
Combat log line structure, timestamps and the UTC offset, COMBAT_LOG_VERSION, the 9-field common header, GUID prefixes, unit flags (including the 0x00010000 target flag), and the spell prefix.
Anatomy of a Line
Every line in a combat log has two parts: a timestamp prefix, and a CSV-encoded event. The separator is two spaces (a tab on some clients).
M/D/YYYY H:MM:SS.mmm<offset> EVENT_TYPE,field1,field2,...
The timestamp includes a millisecond fragment and the writer's UTC offset.
Timestamps and the UTC Offset
The date is month first with no zero padding (10/7/2026, 8/30/2026), on English and non-English clients alike. The fraction is always three millisecond digits. Everything after the third digit is the writer's UTC offset in whole hours:
| Timestamp | Local time | Offset |
|---|---|---|
10/7/2026 20:46:27.250-4 | 20:46:27.250 | UTC-4 |
6/28/2025 15:06:13.659-5 | 15:06:13.659 | UTC-5 |
10/7/2026 19:41:14.7042 | 19:41:14.704 | UTC+2 |
8/30/2026 15:35:07.16710 | 15:35:07.167 | UTC+10 |
- Negative offsets carry a
-sign. Positive offsets carry no sign at all — the digits run straight on from the milliseconds..7042is 704 ms at UTC+2, not 704.2 ms. - Logs from clients east of UTC (EU, OCE) are the ones with unsigned offsets.
- The offset is the same on every line of the file. A different offset moves every timestamp by the same whole number of hours: the log stays internally consistent but sits hours away from real time (and from other logs, uploads, or calendar data).
To convert a line to UTC: utc = local - offsetHours.
The Version Header
The first line of every combat log file declares the format version and configuration:
COMBAT_LOG_VERSION,22,ADVANCED_LOG_ENABLED,1,BUILD_VERSION,12.0.0,PROJECT_ID,1
| Field | Meaning |
|---|---|
COMBAT_LOG_VERSION | Format version. 22 is the current retail format (TWW 11.x and Midnight 12.0+). |
ADVANCED_LOG_ENABLED | 1 if advanced combat logging is on. Always log with this on. |
BUILD_VERSION | Game patch (e.g., 12.0.0). Use this to switch field offsets between minor versions when needed. |
PROJECT_ID | 1 for retail. |
Detection trick: Don't trust the
ADVANCED_LOG_ENABLEDflag. Logs get split, headers get stripped, players paste fragments online. Detect advanced logging by counting fields on a SPELL_DAMAGE event: ~22 fields = off, 40+ fields = on. This is the only reliable method.
The Common Header (Fields 0–8)
Every event with a source/target uses the same 9-field header:
| Field | Name | Type | Description |
|---|---|---|---|
| 0 | event | string | Event type name (e.g., SPELL_DAMAGE) |
| 1 | sourceGUID | string | The thing that did the action |
| 2 | sourceName | quoted string | Name (player full name with realm, NPC name) |
| 3 | sourceFlags | hex uint32 | Bitfield: type, reaction, control, affiliation |
| 4 | sourceRaidFlags | hex uint32 | Raid target marker (skull, X, square, etc.) |
| 5 | destGUID | string | The thing the action happened to |
| 6 | destName | quoted string | Target name |
| 7 | destFlags | hex uint32 | Same bitfield as source |
| 8 | destRaidFlags | hex uint32 | Same as source raid flags |
Names are double-quoted when they contain special characters. CSV parsers must handle quoted commas correctly. Quoted-string handling is the most common reason hand-rolled parsers break on patch days when a new boss has a comma in its name.
GUID Prefixes
The first segment of a GUID identifies the entity type:
| Prefix | Meaning | Example |
|---|---|---|
Player- | A player character | Player-1168-0A234B |
Pet- | Hunter pet, ghoul, elemental, mirror image, voidwalker | Pet-0-4232-2662-31585-165189-... |
Creature- | Any NPC: trash, boss, friendly NPC | Creature-0-4232-2662-31585-214502-... |
Vehicle- | Siege weapons, dungeon vehicles, possession vehicles | Vehicle-0-4232-... |
GameObject- | Interactable objects (rare in combat) | GameObject-0-... |
0000000000000000 | "No source/target" — used for environmental events | sixteen zeros |
The Creature GUID encodes server ID, instance ID, spawn UID, and NPC entry ID. For a parser, only the NPC entry ID matters — that's how you identify "this is the boss" vs "this is a trash mob." It's the second-to-last segment.
Unit Flags
sourceFlags and destFlags are hex-encoded uint32 bitfields packing five pieces of information:
| Mask | Meaning | Values |
|---|---|---|
0x0000000F | Affiliation | 0x1 Mine, 0x2 Party, 0x4 Raid, 0x8 Outsider |
0x000000F0 | Reaction | 0x10 Friendly, 0x20 Neutral, 0x40 Hostile |
0x00000300 | Control | 0x100 Player-controlled, 0x200 NPC-controlled |
0x0000FC00 | Unit type | 0x400 Player, 0x800 NPC, 0x1000 Pet, 0x2000 Guardian, 0x4000 Object |
0xFFFF0000 | Special | 0x10000 Target, 0x20000 Focus, 0x40000 Main tank, 0x80000 Main assist, 0x80000000 None |
A typical player flag of 0x511 decodes as: Mine + Friendly + Player-controlled + Player. A typical hostile NPC flag of 0xa48 decodes as: Outsider + Hostile + NPC-controlled + NPC. 0x10a48 is the same hostile NPC while it is the logging player's target.
Raid flags (the field right after) are separate and only set when someone has a target marker on them: skull 0x80, X 0x40, square 0x20, moon 0x10, triangle 0x08, diamond 0x04, circle 0x02, star 0x01.
The Target Flag (0x00010000)
0x00010000 marks the current target of the player who wrote the log. It is not a boss flag:
- One unit carries it at a time, and it moves within milliseconds when the logger changes target.
- It lands on whatever the logger targets: bosses, adds, trash, and friendly players.
0x20000(focus),0x40000(main tank) and0x80000(main assist) are likewise properties of the logger's UI and raid roles, not of the unit.
Which units are the bosses is a property of the encounter. Identify them by the NPC entry IDs (see GUID Prefixes) that belong to the encounter ID in ENCOUNTER_START. Everything else that is hostile during the pull is an add. Trash pulls have no boss units.
Reaction Is Relative to the Logger
The reaction bits are written from the logging player's point of view, so they change when the logger's own allegiance changes:
- While the logger is mind-controlled, their own group's units are written as hostile, pets and totems included. Those units stay player-controlled (
0x100). - Totems that were summoned before logging started can be written as neutral NPCs.
The unit that is actually on the enemy side is hostile (0x40) and not player-controlled (0x100 clear). Reaction alone is not enough to tell sides apart.
The Spell Prefix (Fields 9–11)
Most events that start with SPELL_ add three fields after the common header:
| Field | Name | Type | Description |
|---|---|---|---|
| 9 | spellId | int | Blizzard's spell ID (look it up at Wowhead) |
| 10 | spellName | quoted string | Localized spell name |
| 11 | spellSchool | hex bitfield | Damage school |
Schools are bitfields because spells can be multi-school (Frostfire = Fire + Frost):
| Value | School |
|---|---|
0x1 | Physical |
0x2 | Holy |
0x4 | Fire |
0x8 | Nature |
0x10 | Frost |
0x20 | Shadow |
0x40 | Arcane |
SWING_* events skip the spell prefix entirely (a melee swing has no spell), which means every field offset shifts by 3 for swings vs spells. This is the second-most-common reason hand-rolled parsers break.
Citing this page
If this reference helped, please link back so others can find it. Suggested citation:
Line Format & Common Header — WoW Combat Log Reference (WowCoach.gg). https://wowcoach.gg/docs/combat-log/line-format