KB4541132 - Improvement: Size and retention policy are increased in default XEvent trace system_health in SQL Server 2016, 2017 and 2019

Applies to: SQL Server 2016 DeveloperSQL Server 2016 EnterpriseSQL Server 2016 Enterprise Core


The current definition for the system_health XEventsession has a maximum file size of 5 megabytes (MB) and maximum number of files of 4, for amaximum of 20 MB of system_health XEvent data. On systems that have a lot of activity, you can roll over this limitation very quickly and miss importantinformation in the event of an issue that affects the system. In order to keep moretroubleshooting data available on the system, the default file size is changed from 5 MB to 100 MB and the default number of files is changed from4 to 10, for a maximum of 1 GB of system_health XEvent data, in this update. If the definitionof the system_health session has already been modified from the default values,this improvement will not overwrite the existing settings.
Additionally, you can change the system_healthsession configuration manually by using the following Transact-SQL script:

ALTER EVENT SESSION [system_health] ON SERVER DROPTARGET package0.event_file
     ADD TARGETpackage0.event_file
          SET filename=N'system_health.xel',


This improvement is included in the following cumulative updates for SQL Server:
About cumulative updates for SQL Server:
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:


Learn about the terminology that Microsoft uses to describe software updates.