Section 01·WoW Combat Log Reference

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:

TimestampLocal timeOffset
10/7/2026 20:46:27.250-420:46:27.250UTC-4
6/28/2025 15:06:13.659-515:06:13.659UTC-5
10/7/2026 19:41:14.704219:41:14.704UTC+2
8/30/2026 15:35:07.1671015:35:07.167UTC+10
  • Negative offsets carry a - sign. Positive offsets carry no sign at all — the digits run straight on from the milliseconds. .7042 is 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
FieldMeaning
COMBAT_LOG_VERSIONFormat version. 22 is the current retail format (TWW 11.x and Midnight 12.0+).
ADVANCED_LOG_ENABLED1 if advanced combat logging is on. Always log with this on.
BUILD_VERSIONGame patch (e.g., 12.0.0). Use this to switch field offsets between minor versions when needed.
PROJECT_ID1 for retail.

Detection trick: Don't trust the ADVANCED_LOG_ENABLED flag. 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:

FieldNameTypeDescription
0eventstringEvent type name (e.g., SPELL_DAMAGE)
1sourceGUIDstringThe thing that did the action
2sourceNamequoted stringName (player full name with realm, NPC name)
3sourceFlagshex uint32Bitfield: type, reaction, control, affiliation
4sourceRaidFlagshex uint32Raid target marker (skull, X, square, etc.)
5destGUIDstringThe thing the action happened to
6destNamequoted stringTarget name
7destFlagshex uint32Same bitfield as source
8destRaidFlagshex uint32Same 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:

PrefixMeaningExample
Player-A player characterPlayer-1168-0A234B
Pet-Hunter pet, ghoul, elemental, mirror image, voidwalkerPet-0-4232-2662-31585-165189-...
Creature-Any NPC: trash, boss, friendly NPCCreature-0-4232-2662-31585-214502-...
Vehicle-Siege weapons, dungeon vehicles, possession vehiclesVehicle-0-4232-...
GameObject-Interactable objects (rare in combat)GameObject-0-...
0000000000000000"No source/target" — used for environmental eventssixteen 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:

MaskMeaningValues
0x0000000FAffiliation0x1 Mine, 0x2 Party, 0x4 Raid, 0x8 Outsider
0x000000F0Reaction0x10 Friendly, 0x20 Neutral, 0x40 Hostile
0x00000300Control0x100 Player-controlled, 0x200 NPC-controlled
0x0000FC00Unit type0x400 Player, 0x800 NPC, 0x1000 Pet, 0x2000 Guardian, 0x4000 Object
0xFFFF0000Special0x10000 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) and 0x80000 (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:

FieldNameTypeDescription
9spellIdintBlizzard's spell ID (look it up at Wowhead)
10spellNamequoted stringLocalized spell name
11spellSchoolhex bitfieldDamage school

Schools are bitfields because spells can be multi-school (Frostfire = Fire + Frost):

ValueSchool
0x1Physical
0x2Holy
0x4Fire
0x8Nature
0x10Frost
0x20Shadow
0x40Arcane

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

Want to see a log parsed instead? Upload one — free with Battle.net sign-in.