title: Extended Events - Not showing log file growth
body: <p>We have a standard extended event session to collect database and log file growth running on our SQL servers.  I was creating an index on a large table, knowing it might fill up the transaction log.  It did, however the DBA that went to investigate why the log drive was out of room, couldn't see the index build as the culprit.  It was showing every other transaction but the index build.   Does anyone know the reason behind this?  I killed the index build as soon as I realized there was a problem, and it released all of the space. I would like to know the WHY behind this.</p>
  <p>This server is running SQL 2016 CU 15 - Enterprise edition.</p>
  <p>Here is the query I was running:</p>
  <pre><code>CREATE NONCLUSTERED INDEX [ix_myIndex]
      ON [dbo].[MyTable]([MyField] ASC)
      WITH(PAD_INDEX=OFF, STATISTICS_NORECOMPUTE=OFF, SORT_IN_TEMPDB=ON, DROP_EXISTING=OFF, ONLINE=ON, ALLOW_ROW_LOCKS=ON, ALLOW_PAGE_LOCKS=ON);
  </code></pre>
  <p>Below is the event we have for capturing log file growth:</p>
  <pre><code> ADD EVENT sqlserver.databases_log_file_size_changed
        (ACTION
              (package0.collect_system_time,
         sqlos.task_time,
         sqlserver.client_app_name,
         sqlserver.client_hostname,
         sqlserver.client_pid,
         sqlserver.database_id,
         sqlserver.database_name,
         sqlserver.server_instance_name,
         sqlserver.session_id,
         sqlserver.sql_text,
         sqlserver.username))
  </code></pre>